diff options
author | Segwon <segwon.han@samsung.com> | 2017-07-18 12:06:44 +0900 |
---|---|---|
committer | Segwon <segwon.han@samsung.com> | 2017-07-21 14:30:03 +0900 |
commit | cca6edad631e5a65ce786344238cc17fc110c373 (patch) | |
tree | 93b015c38eaf4a576d5700849cdc27c16b610206 /src/main.c | |
parent | 003fe4d3f445e4450d28f7f0ced619b463ba167e (diff) | |
download | d2d-conv-setting-accepted/tizen_3.0_wearable.tar.gz d2d-conv-setting-accepted/tizen_3.0_wearable.tar.bz2 d2d-conv-setting-accepted/tizen_3.0_wearable.zip |
Modified to free the device info.submit/tizen_3.0/20170721.060334accepted/tizen/3.0/wearable/20170724.032202tizen_3.0accepted/tizen_3.0_wearable
(+ Major SVACE Issue : Check if dynamically allocated pointer is not NULL)
Signed-off-by: Segwon <segwon.han@samsung.com>
Change-Id: I884c1f8f3a05d1b6ca4acfe3a77c0ff0010feb33
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; |