[gtk+/gtk-3-22] GdkWaylandWindow: Clear export user data when used
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-22] GdkWaylandWindow: Clear export user data when used
- Date: Mon, 8 May 2017 19:47:33 +0000 (UTC)
commit e016d9a5dba6f6f99aee94d0b72c00bee299b96a
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Fri May 5 19:07:04 2017 +0800
GdkWaylandWindow: Clear export user data when used
It was only cleared when unexported, but we could just as well clear it
when its used too.
https://bugzilla.gnome.org/show_bug.cgi?id=782109
gdk/wayland/gdkwindow-wayland.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index 2b25faa..191ab21 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -4027,7 +4027,8 @@ xdg_exported_handle (void *data,
GdkWindowImplWayland *impl = GDK_WINDOW_IMPL_WAYLAND (window->impl);
impl->exported.callback (window, handle, impl->exported.user_data);
- impl->exported.user_data = NULL;
+ g_clear_pointer (&impl->exported.user_data,
+ impl->exported.destroy_func);
}
static const struct zxdg_exported_v1_listener xdg_exported_listener = {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]