[evolution/webkit-composer: 202/210] Disconnect signals properly when disposing the EEditorWidget
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/webkit-composer: 202/210] Disconnect signals properly when disposing the EEditorWidget
- Date: Mon, 8 Jul 2013 01:02:48 +0000 (UTC)
commit 84f4caf462141cd8d5ddd8f5fbf1b2272a76f51e
Author: Tomas Popela <tpopela redhat com>
Date: Fri Jun 21 12:20:44 2013 +0200
Disconnect signals properly when disposing the EEditorWidget
e-util/e-editor-widget.c | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-editor-widget.c b/e-util/e-editor-widget.c
index 74aefbc..d620af4 100644
--- a/e-util/e-editor-widget.c
+++ b/e-util/e-editor-widget.c
@@ -755,6 +755,22 @@ editor_widget_dispose (GObject *object)
g_clear_object (&priv->selection);
+ if (priv->aliasing_settings != NULL) {
+ g_signal_handlers_disconnect_matched (
+ priv->aliasing_settings, G_SIGNAL_MATCH_DATA,
+ 0, 0, NULL, NULL, object);
+ g_object_unref (priv->aliasing_settings);
+ priv->aliasing_settings = NULL;
+ }
+
+ if (priv->font_settings != NULL) {
+ g_signal_handlers_disconnect_matched (
+ priv->font_settings, G_SIGNAL_MATCH_DATA,
+ 0, 0, NULL, NULL, object);
+ g_object_unref (priv->font_settings);
+ priv->font_settings = NULL;
+ }
+
/* Chain up to parent's dispose() method. */
G_OBJECT_CLASS (e_editor_widget_parent_class)->dispose (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]