summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2017-01-28 23:00:10 +0100
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2017-01-28 23:02:40 +0100
commit738f6d8f6b9994e6d6cdc5aad706d11223f31a91 (patch)
treedbf065ee627716076aac09d37975c94e2187989d
parentadc5fa6c8bbf99e42d69ef7e099cbdb1c4309439 (diff)
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.
-rw-r--r--src/bin/e_gadget.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/e_gadget.c b/src/bin/e_gadget.c
index c24fbf03b..34d1337c7 100644
--- a/src/bin/e_gadget.c
+++ b/src/bin/e_gadget.c
@@ -300,14 +300,14 @@ _gadget_object_free(E_Object *eobj)
300 300
301 if (zgc->drop_handlers) 301 if (zgc->drop_handlers)
302 { 302 {
303 Evas_Object *drop_object; 303 Evas_Object **drop_object;
304 Eina_Iterator *it = eina_hash_iterator_key_new(zgc->drop_handlers); 304 Eina_Iterator *it = eina_hash_iterator_key_new(zgc->drop_handlers);
305 305
306 EINA_ITERATOR_FOREACH(it, drop_object) 306 EINA_ITERATOR_FOREACH(it, drop_object)
307 { 307 {
308 evas_object_event_callback_del(drop_object, EVAS_CALLBACK_MOVE, _gadget_drop_handler_moveresize); 308 evas_object_event_callback_del(*drop_object, EVAS_CALLBACK_MOVE, _gadget_drop_handler_moveresize);
309 evas_object_event_callback_del(drop_object, EVAS_CALLBACK_RESIZE, _gadget_drop_handler_moveresize); 309 evas_object_event_callback_del(*drop_object, EVAS_CALLBACK_RESIZE, _gadget_drop_handler_moveresize);
310 evas_object_event_callback_del(drop_object, EVAS_CALLBACK_DEL, _gadget_drop_handler_del); 310 evas_object_event_callback_del(*drop_object, EVAS_CALLBACK_DEL, _gadget_drop_handler_del);
311 } 311 }
312 eina_iterator_free(it); 312 eina_iterator_free(it);
313 } 313 }