e_policy_wl: bug fix with double call of tizen_subsurface_watcher_destroy accepted/tizen/3.0/common/20171013.190459 accepted/tizen/3.0/mobile/20171013.120308 accepted/tizen/3.0/tv/20171013.120337 accepted/tizen/3.0/wearable/20171013.120408 submit/tizen_3.0/20170920.094542 submit/tizen_3.0/20171010.001450
authorJunSeok, Kim <juns.kim@samsung.com>
Fri, 8 Sep 2017 10:33:04 +0000 (19:33 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Wed, 20 Sep 2017 04:31:34 +0000 (13:31 +0900)
Change-Id: I66c3aae8aecdaa131c7aad0c2d229779a05b084e

src/bin/e_policy_wl.c

index 00aa22e2704cc1fba5404b2fb9adf02795943c56..ecaac64ec87aa2a1e480bc0a0542397b6bddb805 100644 (file)
@@ -3102,7 +3102,13 @@ _tzpol_iface_cb_subsurf_watcher_destroy(struct wl_resource *resource)
    E_Client *ec;
 
    if (!(ec = wl_resource_get_user_data(resource))) return;
-   if (e_object_is_del(E_OBJECT(ec)) || !ec->comp_data) return;
+   if (e_object_is_del(E_OBJECT(ec)))
+     {
+        if(!e_object_delay_del_ref_get(E_OBJECT(ec)))
+          return;
+     }
+   if(!ec->comp_data)
+     return;
 
    ec->comp_data->sub.watcher = NULL;
 }