[evolution/wip/webkit-composer: 201/262] Disconnect signals properly when disposing the EEditorWidget
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit-composer: 201/262] Disconnect signals properly when disposing the EEditorWidget
- Date: Thu, 16 Jan 2014 10:04:46 +0000 (UTC)
commit b098371fc77cb0fc72e23c33b8d55b47501f627e
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]