From: Jim Evins Date: Sat, 11 Dec 2010 04:09:40 +0000 (-0500) Subject: Disconnect prefs changed callback when destroying view. X-Git-Tag: glabels-2_3_1~46 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8963061c3080ead1a2000f829d506f6d510943bf;p=glabels Disconnect prefs changed callback when destroying view. This fixes a crash when changing prefs after deleting a window. --- 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");