summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2014-12-01 13:52:30 -0500
committerChris Michael <cp.michael@samsung.com>2014-12-01 13:52:30 -0500
commitcf8801e6cf7e5dd1070b1fe18c6c91aa4cf4fb73 (patch)
tree5d92cba88c84a6b1083de922f8c9350d62f78235
parentc4e398bd4b511dca7046bd5ca19c9149a7e8c336 (diff)
ecore-wayland: Check for xdg_surface before sending ack_configure
Summary: Calling wayland library functions with NULL typically leads to an abort, so add a safety check for valid xdg_surface before calling function @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/lib/ecore_wayland/ecore_wl_window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/ecore_wayland/ecore_wl_window.c b/src/lib/ecore_wayland/ecore_wl_window.c
index 89f1ac9..ecf3ac9 100644
--- a/src/lib/ecore_wayland/ecore_wl_window.c
+++ b/src/lib/ecore_wayland/ecore_wl_window.c
@@ -1037,7 +1037,8 @@ _ecore_xdg_handle_surface_configure(void *data, struct xdg_surface *xdg_surface
1037 _ecore_wl_window_configure_send(win, win->saved.w, win->saved.h, 0); 1037 _ecore_wl_window_configure_send(win, win->saved.w, win->saved.h, 0);
1038 } 1038 }
1039 1039
1040 xdg_surface_ack_configure(win->xdg_surface, serial); 1040 if (win->xdg_surface)
1041 xdg_surface_ack_configure(win->xdg_surface, serial);
1041} 1042}
1042 1043
1043static void 1044static void