raster pushed a commit to branch efl-1.20.

http://git.enlightenment.org/core/efl.git/commit/?id=90d464c5add7450394d2784233a862c5f2dcc1fa

commit 90d464c5add7450394d2784233a862c5f2dcc1fa
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Tue Jan 16 14:50:31 2018 +0900

    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.
---
 src/lib/efl_wl/efl_wl.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/lib/efl_wl/efl_wl.c b/src/lib/efl_wl/efl_wl.c
index 91c7140bd6..78c107272d 100644
--- a/src/lib/efl_wl/efl_wl.c
+++ b/src/lib/efl_wl/efl_wl.c
@@ -2299,6 +2299,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);

-- 


Reply via email to