fix invaild memory read.

previously, entry_move_cb could be called after autocomp is terminated
this logic slightly change them.
This commit is contained in:
Hermet Park 2016-01-02 22:26:57 +09:00
parent eb7209c1ad
commit f3d5cc942a
2 changed files with 3 additions and 1 deletions

View File

@ -900,6 +900,8 @@ void
autocomp_term(void)
{
autocomp_data *ad = g_ad;
autocomp_target_set(NULL);
evas_object_del(ad->anchor);
ecore_thread_cancel(ad->init_thread);

View File

@ -219,11 +219,11 @@ _enventor_object_evas_object_smart_del(Evas_Object *obj EINA_UNUSED,
EINA_REFCOUNT_UNREF(pd)
{
eina_stringshare_del(pd->group_name);
autocomp_term();
edit_term(pd->ed);
ecore_event_handler_del(pd->key_down_handler);
ecore_event_handler_del(pd->key_up_handler);
edj_mgr_term();
autocomp_term();
build_term();
}
}