From 9c942dc36eca89df3e91b92b1f05bba272656267 Mon Sep 17 00:00:00 2001 From: Seunghun Lee Date: Fri, 19 Feb 2016 11:36:12 +0900 Subject: [PATCH] elm_win: fix potentially crash when accessing wl_surface before show for elm_win. since wl_surface is only valid after make elm_win to show, if calling ecore_wl_window API befor show will be failed, and will cause crash by accessing null wl_surface. Change-Id: I668ce9e1cbcb27c3571950f78e37369c60c3be8d --- src/lib/elm_win.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/elm_win.c b/src/lib/elm_win.c index 5fd22d1..4defc61 100644 --- a/src/lib/elm_win.c +++ b/src/lib/elm_win.c @@ -2083,13 +2083,13 @@ _elm_win_obj_intercept_show(void *data, #endif evas_object_show(sd->pointer.obj); } + evas_object_show(obj); #ifdef HAVE_ELEMENTARY_WAYLAND int x, y, w, h; evas_object_geometry_get(obj, &x, &y, &w, &h); ecore_wl_window_opaque_region_set(sd->wl.win, x, y, w, h); #endif - evas_object_show(obj); #ifdef ELEMENTARY_X if (sd->type == ELM_WIN_TOOLTIP) ecore_x_window_shape_input_rectangle_set(sd->x.xwin, 0, 0, 0, 0); -- 2.7.4