From 23fd5aff4e260607e1702e92f7dc7f9dbdbe3d42 Mon Sep 17 00:00:00 2001 From: Gwanglim Lee Date: Thu, 14 May 2015 14:06:20 +0900 Subject: [PATCH] add null check to prevent segmentation fault when releasing input panel surface Change-Id: I0c58168672fa0018c41c27d1faf163ef37d2d9f2 --- src/e_mod_input_panel.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/e_mod_input_panel.c b/src/e_mod_input_panel.c index 920b816..61cbc6f 100644 --- a/src/e_mod_input_panel.c +++ b/src/e_mod_input_panel.c @@ -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; -- 2.7.4