Calling wl_list_remove(sub->parent_surface_destroy.link) in
_e_subsurface_destroy() caused memory corruption, if it is called after
the destruction of parent surface.
Change-Id: Ifb0ee675554d13c93aed2e2c438c8a43f2d347e1
E_Client *ec;
sub = wl_container_of(listener, sub, parent_surface_destroy);
+
+ wl_list_remove(&sub->parent_surface_destroy.link);
+ wl_list_init(&sub->parent_surface_destroy.link);
+
e_comp_wl_client_subsurface_parent_unset(sub->surface->ec);
ec = sub->surface->ec;