Revert "efl wl - fix segv where garbage ptr to comp surface is still there"
authorMike Blumenkrantz <zmike@osg.samsung.com>
Wed, 17 Jan 2018 22:33:57 +0000 (17:33 -0500)
committerWonki Kim <wonki_.kim@samsung.com>
Tue, 3 Apr 2018 04:28:21 +0000 (13:28 +0900)
This reverts commit 574ef9a5e53ac2ecabc14fd02be7e55cd90a9b25.

this should be resolved by 863a6e159e99c5f69ecc7461106aba2102f1da11 and is
only a possible case when an unmapped surface was activated, something which
is prevented by spec and can only occur if bugs exist elsewhere

src/lib/efl_wl/efl_wl.c

index 3234921..12b2fa8 100644 (file)
@@ -2390,9 +2390,6 @@ 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);