add null check to prevent segmentation fault when releasing input panel surface 79/39379/1
authorGwanglim Lee <gl77.lee@samsung.com>
Thu, 14 May 2015 05:06:20 +0000 (14:06 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Thu, 14 May 2015 05:06:20 +0000 (14:06 +0900)
Change-Id: I0c58168672fa0018c41c27d1faf163ef37d2d9f2

src/e_mod_input_panel.c

index 920b816..61cbc6f 100644 (file)
@@ -223,6 +223,14 @@ _e_input_panel_surface_unmap(struct wl_resource *resource)
         return;
      }
 
+   if (!ec->comp_data)
+     {
+        wl_resource_post_error(resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
+                               "No Client For Input Panel Surface");
+        return;
+     }
+
    if (ec->comp_data->mapped)
      {
         ec->visible = EINA_FALSE;