make input_region into NULL after destroyed 98/72798/3
authorSeungjin Park <sj8808.park@samsung.com>
Thu, 2 Jun 2016 11:16:40 +0000 (20:16 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Fri, 3 Jun 2016 08:54:36 +0000 (01:54 -0700)
Signed-off-by: Seungjin Park <sj8808.park@samsung.com>
Change-Id: I23e31a690ee7b773e38bbd55fe94a8b8d97b43a7

src/lib/ecore_wayland/ecore_wl_window.c

index 81b6f4b..c3e3446 100644 (file)
@@ -1111,7 +1111,10 @@ ecore_wl_window_input_rect_set(Ecore_Wl_Window *win, Eina_Rectangle *input_rect)
    if (!win) return;
    if (!input_rect) return;
    if (win->input_region)
-     wl_region_destroy(win->input_region);
+     {
+        wl_region_destroy(win->input_region);
+        win->input_region = NULL;
+     }
 
    win->input.x = input_rect->x;
    win->input.y = input_rect->y;