[glabels] Disconnect prefs changed callback when destroying view.
- From: Jim Evins <jimevins src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glabels] Disconnect prefs changed callback when destroying view.
- Date: Sat, 11 Dec 2010 04:11:59 +0000 (UTC)
commit 8963061c3080ead1a2000f829d506f6d510943bf
Author: Jim Evins <evins snaught com>
Date: Fri Dec 10 23:09:40 2010 -0500
Disconnect prefs changed callback when destroying view.
This fixes a crash when changing prefs after deleting a window.
src/view.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/view.c b/src/view.c
index 983f8e5..b1550b4 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");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]