subsurface: should set lists to NULL after free 40/107140/4
authorBoram Park <boram1288.park@samsung.com>
Tue, 27 Dec 2016 01:48:51 +0000 (10:48 +0900)
committerBoram Park <boram1288.park@samsung.com>
Tue, 27 Dec 2016 02:08:09 +0000 (11:08 +0900)
Change-Id: Icb3717e8e04a3ef4fda3a072b8a84f424919466a

src/bin/e_comp_wl.c

index 7468117623bbe54cb46628dd6be788c3b64fd889..2b8f26bddde9836e660c453dde4c5e0b527f42f6 100644 (file)
@@ -4210,9 +4210,13 @@ _e_comp_wl_client_cb_del(void *data EINA_UNUSED, E_Client *ec)
    /* remove sub list */
    /* TODO: if parent is set by onscreen_parent of remote surface? */
    _e_comp_wl_surface_sub_list_free(ec->comp_data->sub.list);
+   ec->comp_data->sub.list = NULL;
    _e_comp_wl_surface_sub_list_free(ec->comp_data->sub.list_pending);
+   ec->comp_data->sub.list_pending = NULL;
    _e_comp_wl_surface_sub_list_free(ec->comp_data->sub.below_list);
+   ec->comp_data->sub.below_list = NULL;
    _e_comp_wl_surface_sub_list_free(ec->comp_data->sub.below_list_pending);
+   ec->comp_data->sub.below_list_pending = NULL;
 
    if (ec->comp_data->sub.watcher)
      wl_resource_destroy(ec->comp_data->sub.watcher);