aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2013-02-05 12:51:38 +0000
committerRafael Antognolli <rafael.antognolli@linux.intel.com>2013-02-19 10:18:02 -0300
commit3bf37fb3b84402e118628808aeb488af099b7c42 (patch)
treece373a04c1bfbe8bf521d3cd1ecbe4e6f41e81a2 /src
parent886768b1e1a45b7c050dd064cd9e0de11eeef544 (diff)
downloadefl-3bf37fb3b84402e118628808aeb488af099b7c42.tar.gz
efl-3bf37fb3b84402e118628808aeb488af099b7c42.tar.xz
efl-3bf37fb3b84402e118628808aeb488af099b7c42.zip
Free any old input or opaque regions if they exist (regardless of the existance of a surface).
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
Diffstat (limited to 'src')
-rw-r--r--src/lib/ecore_wayland/ecore_wl_window.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/ecore_wayland/ecore_wl_window.c b/src/lib/ecore_wayland/ecore_wl_window.c
index f870ac906..19bf9c597 100644
--- a/src/lib/ecore_wayland/ecore_wl_window.c
+++ b/src/lib/ecore_wayland/ecore_wl_window.c
@@ -248,18 +248,18 @@ ecore_wl_window_buffer_attach(Ecore_Wl_Window *win, struct wl_buffer *buffer, in
return;
}
- if (!win->surface) return;
-
if (win->region.input)
{
- wl_surface_set_input_region(win->surface, win->region.input);
+ if (win->surface)
+ wl_surface_set_input_region(win->surface, win->region.input);
wl_region_destroy(win->region.input);
win->region.input = NULL;
}
if (win->region.opaque)
{
- wl_surface_set_opaque_region(win->surface, win->region.opaque);
+ if (win->surface)
+ wl_surface_set_opaque_region(win->surface, win->region.opaque);
wl_region_destroy(win->region.opaque);
win->region.opaque = NULL;
}