macos: handle NULL frame-clock when thawing

This commit is contained in:
Christian Hergert 2022-01-29 16:19:57 -08:00
parent 06ec4ec148
commit ea43939f52

View File

@ -726,7 +726,8 @@ _gdk_macos_surface_thaw (GdkMacosSurface *self,
gdk_surface_thaw_updates (GDK_SURFACE (self));
frame_clock = gdk_surface_get_frame_clock (GDK_SURFACE (self));
if (!(frame_clock = gdk_surface_get_frame_clock (GDK_SURFACE (self))))
return;
if (self->pending_frame_counter)
{