forked from enlightenment/enventor
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:
parent
eb7209c1ad
commit
f3d5cc942a
|
@ -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);
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue