summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Bouchaud (yoz) <yoz@efl.so>2019-01-14 16:34:11 +0100
committerMichael Bouchaud (yoz) <yoz@efl.so>2019-01-14 16:34:11 +0100
commit7c45edfcc3998557dc136159b0b6285d1349d1ca (patch)
tree8a59e305a7e522f60ff7d49a1208b6c7b38305ee
parent8bf0ca60c06a1a09b651d58b6a56a3e5472c50a2 (diff)
Avoid segfault on exit if the config dialog is open
-rw-r--r--src/config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c
index aafb91c..5c02ee9 100644
--- a/src/config.c
+++ b/src/config.c
@@ -60,6 +60,8 @@ _config_close(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, voi
60 60
61 ci = data; 61 ci = data;
62 62
63 if (!weather_config) return;
64
63 INF("Config close"); 65 INF("Config close");
64 weather_config->config_dialog = NULL; 66 weather_config->config_dialog = NULL;
65 weather_config->config_list = NULL; 67 weather_config->config_list = NULL;