diff options
author | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2019-10-01 16:13:43 -0300 |
---|---|---|
committer | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2019-10-01 16:13:43 -0300 |
commit | 0e55f7a52fb2ad119384556fc61bac98d2bb3a5f (patch) | |
tree | 5fe3cb06565aeb19291c2e043d8a3a0721c4f9c7 /gdk | |
parent | febe128e725051f6a4b9f8386ddea0d2a1ae5139 (diff) | |
download | gtk+-0e55f7a52fb2ad119384556fc61bac98d2bb3a5f.tar.gz |
wayland/surface: Fix crash when unexporting
This is the exact same problem of 655c9dd526.
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/wayland/gdksurface-wayland.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gdk/wayland/gdksurface-wayland.c b/gdk/wayland/gdksurface-wayland.c index aed4489c7c..80e12e29ce 100644 --- a/gdk/wayland/gdksurface-wayland.c +++ b/gdk/wayland/gdksurface-wayland.c @@ -4184,8 +4184,11 @@ gdk_wayland_surface_unexport_handle (GdkSurface *surface) g_clear_pointer (&impl->display_server.xdg_exported, zxdg_exported_v1_destroy); - g_clear_pointer (&impl->exported.user_data, - impl->exported.destroy_func); + if (impl->exported.destroy_func) + { + g_clear_pointer (&impl->exported.user_data, + impl->exported.destroy_func); + } } static void |