delete notification mirror objects upon deleting original popup
authorMike Blumenkrantz <zmike@osg.samsung.com>
Mon, 14 Sep 2015 17:14:06 +0000 (13:14 -0400)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Mon, 14 Sep 2015 17:15:30 +0000 (13:15 -0400)
fix T2722

src/modules/notification/e_mod_popup.c

index cee055f..2f30e8a 100644 (file)
@@ -477,7 +477,8 @@ _notification_popup_new(E_Notification_Notify *n, unsigned id)
              int x, y, w, h;
 
              if (zone == e_comp_object_util_zone_get(popup->win)) continue;
-             o = e_comp_object_util_mirror_add(popup->win);
+             o = e_comp_object_util_mirror_add(popup->theme);
+             o = e_comp_object_util_add(o, E_COMP_OBJECT_TYPE_POPUP);
              evas_object_name_set(o, "notification_mirror");
              evas_object_data_set(o, "zone", zone);
              evas_object_geometry_get(popup->win, NULL, NULL, &w, &h);
@@ -729,7 +730,7 @@ _notification_popdown(Popup_Data                  *popup,
                       E_Notification_Notify_Closed_Reason reason)
 {
    E_FREE_FUNC(popup->timer, ecore_timer_del);
-   popup->mirrors = eina_list_free(popup->mirrors);
+   E_FREE_LIST(popup->mirrors, evas_object_del);
    if (popup->win)
      {
         evas_object_hide(popup->win);