valgrind related fix for one time crash 47/107347/3
authorSreedeep Moulik <sreedeep.m@samsung.com>
Tue, 27 Dec 2016 13:43:20 +0000 (19:13 +0530)
committerGwanglim Lee <gl77.lee@samsung.com>
Thu, 29 Dec 2016 02:31:52 +0000 (18:31 -0800)
Change-Id: Ia51f9314f507fb777f660e8eb7b879258fa5183a
Signed-off-by: Sreedeep Moulik <sreedeep.m@samsung.com>
src/modules/wl_desktop_shell/e_mod_input_panel.c
src/modules/wl_desktop_shell/e_mod_main.c

index 1596959..893fc08 100644 (file)
@@ -66,6 +66,8 @@ _e_input_panel_surface_resource_destroy(struct wl_resource *resource)
           {
              ec->parent->transients =
                 eina_list_remove(ec->parent->transients, ec);
+             if (ec->parent->modal == ec) ec->parent->modal = NULL;
+             ec->parent = NULL;
           }
         ec->comp_data->shell.surface = NULL;
      }
index 186366d..8bde193 100644 (file)
@@ -136,6 +136,8 @@ _e_shell_surface_destroy(struct wl_resource *resource)
                {
                   ec->parent->transients =
                      eina_list_remove(ec->parent->transients, ec);
+                  if (ec->parent->modal == ec) ec->parent->modal = NULL;
+                  ec->parent = NULL;
                }
              /* wl_resource_destroy(ec->comp_data->shell.surface); */
           }