diff options
-rw-r--r-- | src/lib/efl_wl/efl_wl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/efl_wl/efl_wl.c b/src/lib/efl_wl/efl_wl.c index 2bdb222501..9eec04e916 100644 --- a/src/lib/efl_wl/efl_wl.c +++ b/src/lib/efl_wl/efl_wl.c | |||
@@ -2301,6 +2301,12 @@ comp_surface_smart_del(Evas_Object *obj) | |||
2301 | } | 2301 | } |
2302 | evas_object_del(cs->img); | 2302 | evas_object_del(cs->img); |
2303 | evas_object_del(cs->clip); | 2303 | evas_object_del(cs->clip); |
2304 | if (cs->shell.surface) | ||
2305 | { | ||
2306 | if (cs->role) | ||
2307 | wl_resource_destroy(cs->role); | ||
2308 | wl_resource_destroy(cs->shell.surface); | ||
2309 | } | ||
2304 | cs->c->surfaces = eina_inlist_remove(cs->c->surfaces, EINA_INLIST_GET(cs)); | 2310 | cs->c->surfaces = eina_inlist_remove(cs->c->surfaces, EINA_INLIST_GET(cs)); |
2305 | cs->c->surfaces_count--; | 2311 | cs->c->surfaces_count--; |
2306 | free(cs); | 2312 | free(cs); |