From 8963061c3080ead1a2000f829d506f6d510943bf Mon Sep 17 00:00:00 2001 From: Jim Evins Date: Fri, 10 Dec 2010 23:09:40 -0500 Subject: [PATCH] Disconnect prefs changed callback when destroying view. This fixes a crash when changing prefs after deleting a window. --- src/view.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/view.c b/src/view.c index 983f8e56..b1550b4b 100644 --- a/src/view.c +++ b/src/view.c @@ -347,6 +347,9 @@ gl_view_finalize (GObject *object) g_return_if_fail (object != NULL); g_return_if_fail (GL_IS_VIEW (view)); + g_signal_handlers_disconnect_by_func (G_OBJECT (gl_prefs), + G_CALLBACK (prefs_changed_cb), view); + G_OBJECT_CLASS (gl_view_parent_class)->finalize (object); gl_debug (DEBUG_VIEW, "END"); -- 2.39.5