summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Bouchaud (yoz) <yoz@efl.so>2019-01-14 15:46:37 +0100
committerMichael Bouchaud (yoz) <yoz@efl.so>2019-01-14 15:46:37 +0100
commit8bf0ca60c06a1a09b651d58b6a56a3e5472c50a2 (patch)
treebbf525b99ec8e9f49fd611e7c5b556a22057f231
parent5ddde652ab060d2f47b644689822754f96a8f8f2 (diff)
Avoid crash when searching a location
-rw-r--r--src/plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugin.c b/src/plugin.c
index 5926e5b..8df2683 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -227,12 +227,12 @@ _weather_plugin_search_done(void)
227 { 227 {
228 _sr->cb(_sr->ws, _sr->data); 228 _sr->cb(_sr->ws, _sr->data);
229 } 229 }
230 _sr->ws = NULL;
230 if (!_sr->timer) 231 if (!_sr->timer)
231 { 232 {
232 DBG("free search data"); 233 DBG("free search data");
233 eina_stringshare_del(_sr->city); 234 eina_stringshare_del(_sr->city);
234 eina_stringshare_del(_sr->country); 235 eina_stringshare_del(_sr->country);
235 _sr->ws = NULL;
236 eina_binbuf_free(_sr->buffer); 236 eina_binbuf_free(_sr->buffer);
237 E_FREE_LIST(_sr->handlers, ecore_event_handler_del); 237 E_FREE_LIST(_sr->handlers, ecore_event_handler_del);
238 E_FREE(_sr); 238 E_FREE(_sr);