From: Jonas Ã…dahl Date: Fri, 5 May 2017 11:07:04 +0000 (+0800) Subject: GdkWaylandWindow: Clear export user data when used X-Git-Tag: archive/raspbian/3.24.39-1+rpi1~1^2~65^2~39^2~586 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e016d9a5dba6f6f99aee94d0b72c00bee299b96a;p=gtk%2B3.0.git 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 --- diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c index 2b25faa882..191ab214a1 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 = {