e_comp_wl_shell: 'ec->comp_data->shell.surface' has to be NULL. 59/201159/1
authorSeunghun <shiin.lee@samsung.com>
Mon, 11 Mar 2019 04:26:54 +0000 (13:26 +0900)
committerSeunghun <shiin.lee@samsung.com>
Mon, 11 Mar 2019 04:26:54 +0000 (13:26 +0900)
It is to prevent for 'E_Shell_Surface_Api' functions to be called from outside.

Change-Id: I257c1ef1d6db7dffd86a43aa2349b195f8eb55ca

src/bin/e_comp_wl_shell.c

index 2bdf744..ec6b184 100644 (file)
@@ -413,9 +413,11 @@ e_shell_e_client_destroy(E_Client *ec)
                   ec->comp_data->shell.unmap(ec->comp_data->shell.surface);
                }
           }
-        ec->comp_data->shell.surface = NULL;
         e_policy_client_unmap(ec);
      }
+
+   if (ec->comp_data)
+     ec->comp_data->shell.surface = NULL;
 }
 
 static void