diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -16,6 +16,8 @@ #include "main.h" +appdata_s *ad = NULL; + static void win_delete_request_cb(void *data, Evas_Object *obj, void *event_info) { ui_app_exit(); @@ -91,7 +93,7 @@ static void app_terminate(void *data) static void init_appdata() { ad = (appdata_s*)malloc(sizeof(appdata_s)); - { + if (ad != NULL) { ad->win = NULL; ad->conform = NULL; ad->circle_surface = NULL; |