efl wl - fix segv where garbage ptr to comp surface is still there

comp surface destruction doesnt clear the pointer to one in the comp
struct that then is garbage later. fix.
This commit is contained in:
Carsten Haitzler 2018-01-16 14:50:31 +09:00
parent 07e7bbd4b5
commit 574ef9a5e5
1 changed files with 3 additions and 0 deletions

View File

@ -2321,6 +2321,9 @@ comp_surface_smart_del(Evas_Object *obj)
{
Comp_Surface *cs = evas_object_smart_data_get(obj);
if ((cs->c) && (cs->c->active_surface == cs))
cs->c->active_surface = NULL;
array_clear(&cs->input_rects);
array_clear(&cs->opaque_rects);
eina_tiler_free(cs->opaque);