projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6006fab
)
efl_wl: destroy extant shell surface upon surface deletion
author
Mike Blumenkrantz
<zmike@osg.samsung.com>
Wed, 18 Oct 2017 21:11:36 +0000
(17:11 -0400)
committer
Mike Blumenkrantz
<zmike@osg.samsung.com>
Wed, 25 Oct 2017 14:44:16 +0000
(10:44 -0400)
avoid invalid reads later
@fix
src/lib/efl_wl/efl_wl.c
patch
|
blob
|
history
diff --git
a/src/lib/efl_wl/efl_wl.c
b/src/lib/efl_wl/efl_wl.c
index
2bdb222
..
9eec04e
100644
(file)
--- 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)
}
evas_object_del(cs->img);
evas_object_del(cs->clip);
+ if (cs->shell.surface)
+ {
+ if (cs->role)
+ wl_resource_destroy(cs->role);
+ wl_resource_destroy(cs->shell.surface);
+ }
cs->c->surfaces = eina_inlist_remove(cs->c->surfaces, EINA_INLIST_GET(cs));
cs->c->surfaces_count--;
free(cs);