[popup] remove event handler when popup is deleted
authorShinwoo Kim <cinoo.kim@samsung.com>
Fri, 13 May 2011 05:54:40 +0000 (14:54 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Fri, 13 May 2011 05:54:40 +0000 (14:54 +0900)
Change-Id: I379235ed42fc33e637355d691a7b25a20908f77d

src/lib/elm_popup.c

index 0d92988..496e579 100644 (file)
@@ -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);
 }