From 707040890dbe8e4a39ba4e27fc8a2bf9acf2bf34 Mon Sep 17 00:00:00 2001 From: Shinwoo Kim Date: Fri, 13 May 2011 14:54:40 +0900 Subject: [PATCH] [popup] remove event handler when popup is deleted Change-Id: I379235ed42fc33e637355d691a7b25a20908f77d --- src/lib/elm_popup.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/lib/elm_popup.c b/src/lib/elm_popup.c index 0d92988..496e579 100644 --- a/src/lib/elm_popup.c +++ b/src/lib/elm_popup.c @@ -56,8 +56,16 @@ static void _del_hook(Evas_Object *obj) { Widget_Data *wd = elm_widget_data_get(obj); - if (!wd) return; + +#ifdef HAVE_ELEMENTARY_X + if(wd->wnd_map_handler) + { + ecore_event_handler_del(wd->wnd_map_handler); + wd->wnd_map_handler = NULL; + } +#endif + free(wd); } -- 2.7.4