[gtk/wip/chergert/gdk-macos-for-master] macos: disconnect frame clock when destroying surface
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/gdk-macos-for-master] macos: disconnect frame clock when destroying surface
- Date: Wed, 2 Dec 2020 19:32:00 +0000 (UTC)
commit 853a9c7a8c0623d02d509f38f0f8f3507bac28c9
Author: Christian Hergert <chergert redhat com>
Date: Wed Dec 2 11:35:02 2020 -0800
macos: disconnect frame clock when destroying surface
gdk/macos/gdkmacossurface.c | 11 +++++++++++
1 file changed, 11 insertions(+)
---
diff --git a/gdk/macos/gdkmacossurface.c b/gdk/macos/gdkmacossurface.c
index 2360e1c476..5d6f2e1aaa 100644
--- a/gdk/macos/gdkmacossurface.c
+++ b/gdk/macos/gdkmacossurface.c
@@ -361,6 +361,17 @@ gdk_macos_surface_destroy (GdkSurface *surface,
GdkMacosSurface *self = (GdkMacosSurface *)surface;
GdkMacosWindow *window = g_steal_pointer (&self->window);
+ GdkFrameClock *frame_clock;
+
+ if ((frame_clock = gdk_surface_get_frame_clock (GDK_SURFACE (self))))
+ {
+ g_signal_handlers_disconnect_by_func (frame_clock,
+ G_CALLBACK (gdk_macos_surface_before_paint),
+ self);
+ g_signal_handlers_disconnect_by_func (frame_clock,
+ G_CALLBACK (gdk_macos_surface_before_paint),
+ self);
+ }
g_clear_pointer (&self->title, g_free);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]