elm: Removed unnecessary null check for ecore_event_handler_del.

This commit is contained in:
Daniel Juyung Seo 2014-01-22 10:47:03 +09:00
parent db5fe2581d
commit 0c3c2572b9
4 changed files with 5 additions and 10 deletions

View File

@ -2685,8 +2685,7 @@ _elm_config_shutdown(void)
#undef ENGINE_COMPARE
{
#ifdef HAVE_ELEMENTARY_X
ecore_event_handler_del(_prop_change_handler);
_prop_change_handler = NULL;
ELM_SAFE_FREE(_prop_change_handler, ecore_event_handler_del);
#endif
}
ELM_SAFE_FREE(_elm_config, _config_free);

View File

@ -924,7 +924,7 @@ _elm_conformant_smart_del(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
Elm_Conformant_Smart_Data *sd = _pd;
#ifdef HAVE_ELEMENTARY_X
if (sd->prop_hdl) ecore_event_handler_del(sd->prop_hdl);
ecore_event_handler_del(sd->prop_hdl);
#endif
ecore_job_del(sd->show_region_job);

View File

@ -601,9 +601,7 @@ _elm_icon_smart_del(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
eina_stringshare_del(sd->thumb.file.key);
eina_stringshare_del(sd->thumb.thumb.path);
eina_stringshare_del(sd->thumb.thumb.key);
if (sd->thumb.eeh)
ecore_event_handler_del(sd->thumb.eeh);
ecore_event_handler_del(sd->thumb.eeh);
_edje_signals_free(sd);

View File

@ -326,10 +326,8 @@ elm_shutdown(void)
_elm_init_count--;
if (_elm_init_count > 0) return _elm_init_count;
if (system_handlers[0])
ecore_event_handler_del(system_handlers[0]);
if (system_handlers[1])
ecore_event_handler_del(system_handlers[1]);
ecore_event_handler_del(system_handlers[0]);
ecore_event_handler_del(system_handlers[1]);
_elm_win_shutdown();
while (_elm_win_deferred_free) ecore_main_loop_iterate();