e_policy_wl: fix access to deleted ec 25/103025/1
authorMinJeong Kim <minjjj.kim@samsung.com>
Wed, 7 Dec 2016 05:02:00 +0000 (14:02 +0900)
committerMinJeong Kim <minjjj.kim@samsung.com>
Wed, 7 Dec 2016 05:02:08 +0000 (14:02 +0900)
Change-Id: I258d2234401d933b63748153224fa0279d6635b9
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
src/bin/e_policy_wl.c

index 17d41c65ed82a4cc1f1c53798de147f648754f23..c24c6cb1f064efa6d4fa7e4e6004fb1fa38734df 100644 (file)
@@ -4635,9 +4635,6 @@ _tzlaunch_img_iface_cb_owner(struct wl_client *client EINA_UNUSED, struct wl_res
                    old_ec, new_ec, tzlaunch_img->obj);
 
              /* delete ec was created for launchscreen */
-             e_pixmap_win_id_del(tzlaunch_img->ep);
-             e_object_del(E_OBJECT(old_ec));
-             tzlaunch_img->ep = NULL;
              if (old_ec->visible)
                {
                   old_ec->visible = EINA_FALSE;
@@ -4646,6 +4643,10 @@ _tzlaunch_img_iface_cb_owner(struct wl_client *client EINA_UNUSED, struct wl_res
                }
              e_comp->launchscrns = eina_list_remove(e_comp->launchscrns, old_ec);
 
+             e_pixmap_win_id_del(tzlaunch_img->ep);
+             e_object_del(E_OBJECT(old_ec));
+             tzlaunch_img->ep = NULL;
+
              e_client_visibility_calculate();
           }
         else