forked from enlightenment/enlightenment
e_gadget: fix destroying of drop_objects
keys of pointer hashes are represent as void** so you just get a pointer to where the pointer can be found. This now dereferences the pointer so the correct value is used. This fixes T5136.
This commit is contained in:
parent
adc5fa6c8b
commit
738f6d8f6b
|
@ -300,14 +300,14 @@ _gadget_object_free(E_Object *eobj)
|
||||||
|
|
||||||
if (zgc->drop_handlers)
|
if (zgc->drop_handlers)
|
||||||
{
|
{
|
||||||
Evas_Object *drop_object;
|
Evas_Object **drop_object;
|
||||||
Eina_Iterator *it = eina_hash_iterator_key_new(zgc->drop_handlers);
|
Eina_Iterator *it = eina_hash_iterator_key_new(zgc->drop_handlers);
|
||||||
|
|
||||||
EINA_ITERATOR_FOREACH(it, drop_object)
|
EINA_ITERATOR_FOREACH(it, drop_object)
|
||||||
{
|
{
|
||||||
evas_object_event_callback_del(drop_object, EVAS_CALLBACK_MOVE, _gadget_drop_handler_moveresize);
|
evas_object_event_callback_del(*drop_object, EVAS_CALLBACK_MOVE, _gadget_drop_handler_moveresize);
|
||||||
evas_object_event_callback_del(drop_object, EVAS_CALLBACK_RESIZE, _gadget_drop_handler_moveresize);
|
evas_object_event_callback_del(*drop_object, EVAS_CALLBACK_RESIZE, _gadget_drop_handler_moveresize);
|
||||||
evas_object_event_callback_del(drop_object, EVAS_CALLBACK_DEL, _gadget_drop_handler_del);
|
evas_object_event_callback_del(*drop_object, EVAS_CALLBACK_DEL, _gadget_drop_handler_del);
|
||||||
}
|
}
|
||||||
eina_iterator_free(it);
|
eina_iterator_free(it);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue