wayland/surface: Fix crash when unexporting

This is the exact same problem of 655c9dd526.
This commit is contained in:
Georges Basile Stavracas Neto 2019-10-01 16:13:43 -03:00
parent febe128e72
commit 0e55f7a52f

View File

@ -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