[gedit] Clear print settings in app::dispose
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Clear print settings in app::dispose
- Date: Sun, 4 Mar 2012 15:56:07 +0000 (UTC)
commit fb92c249e7d1d07ae893fe76dfd1a7a2617b9553
Author: Paolo Borelli <pborelli gnome org>
Date: Sun Mar 4 16:52:34 2012 +0100
Clear print settings in app::dispose
gedit/gedit-app.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/gedit/gedit-app.c b/gedit/gedit-app.c
index 49169c9..65b6339 100644
--- a/gedit/gedit-app.c
+++ b/gedit/gedit-app.c
@@ -99,11 +99,6 @@ gedit_app_finalize (GObject *object)
g_list_free (app->priv->windows);
- if (app->priv->page_setup)
- g_object_unref (app->priv->page_setup);
- if (app->priv->print_settings)
- g_object_unref (app->priv->print_settings);
-
G_OBJECT_CLASS (gedit_app_parent_class)->finalize (object);
}
@@ -115,6 +110,9 @@ gedit_app_dispose (GObject *object)
g_clear_object (&app->priv->window_settings);
g_clear_object (&app->priv->settings);
+ g_clear_object (app->priv->page_setup);
+ g_clear_object (app->priv->print_settings);
+
/* Note that unreffing the extensions will automatically remove
all extensions which in turn will deactivate the extension */
g_clear_object (&app->priv->extensions);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]