discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=cd4c3ecc5dda6e7cc0d80a351a888758046a937b

commit cd4c3ecc5dda6e7cc0d80a351a888758046a937b
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Thu Dec 1 12:13:57 2016 -0500

    free xdg-shell data for xdg5 surfaces
---
 src/modules/wl_desktop_shell/e_mod_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/wl_desktop_shell/e_mod_main.c 
b/src/modules/wl_desktop_shell/e_mod_main.c
index 112c0eb..3775baa 100644
--- a/src/modules/wl_desktop_shell/e_mod_main.c
+++ b/src/modules/wl_desktop_shell/e_mod_main.c
@@ -32,7 +32,7 @@ e_shell_surface_destroy(struct wl_resource *resource)
    if (shd)
      {
         E_FREE_LIST(shd->pending, free);
-        if (resource == shd->surface)
+        if ((resource == shd->surface) || (!shd->surface))
           E_FREE(ec->comp_data->shell.data);
      }
 

-- 


Reply via email to