wayland/toplevel: Don't leak wl_callback used during present()

This commit is contained in:
Jonas Ådahl 2020-08-07 14:01:16 +02:00
parent 8cd2f615ad
commit 6724d4250f

View File

@ -4814,8 +4814,7 @@ gdk_wayland_toplevel_present (GdkToplevel *toplevel,
(!impl->initial_configure_received || !done))
wl_display_dispatch_queue (display_wayland->wl_display, impl->event_queue);
if (!done)
wl_callback_destroy (callback);
wl_callback_destroy (callback);
if (needs_reconfigure &&
last_configure_serial == impl->last_configure_serial &&