From b34c8995b94ee231e783a0f04fc8edc3c544c23d Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Thu, 19 Mar 2009 00:19:12 +0000 Subject: [PATCH] proper cleanup of drop_handlers. SVN revision: 39565 --- src/bin/e_dnd.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/bin/e_dnd.c b/src/bin/e_dnd.c index 57f4dbdb1..398dbf5fb 100644 --- a/src/bin/e_dnd.c +++ b/src/bin/e_dnd.c @@ -133,18 +133,20 @@ e_dnd_shutdown(void) while (_drag_list) { - E_Drag *drag; - - drag = _drag_list->data; + E_Drag *drag = _drag_list->data; e_object_del(E_OBJECT(drag)); } + while (_drop_handlers) + { + E_Drop_Handler *h = _drop_handlers->data; + e_drop_handler_del(h); + } + EINA_LIST_FREE(_event_handlers, h) ecore_event_handler_del(h); eina_hash_free(_drop_win_hash); - eina_list_free(_drop_handlers); - _drop_handlers = NULL; eina_hash_free(_drop_handlers_responsives);