wayland/surface: Fix crash when unexporting
This is the exact same problem of 655c9dd526.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user