aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2014-01-31 02:47:25 +0800
committerMilan Crha <mcrha@redhat.com>2014-01-31 02:47:25 +0800
commit7ab8b4d248a398bce2cec081274cfba0dd8849b2 (patch)
tree02ccc64eece79197d64904b38e9ba9a6d0ec0eef
parentf77ad2a662bbe99d77700d51d45eaf198f7e085c (diff)
downloadgsoc2013-evolution-7ab8b4d248a398bce2cec081274cfba0dd8849b2.tar
gsoc2013-evolution-7ab8b4d248a398bce2cec081274cfba0dd8849b2.tar.gz
gsoc2013-evolution-7ab8b4d248a398bce2cec081274cfba0dd8849b2.tar.bz2
gsoc2013-evolution-7ab8b4d248a398bce2cec081274cfba0dd8849b2.tar.lz
gsoc2013-evolution-7ab8b4d248a398bce2cec081274cfba0dd8849b2.tar.xz
gsoc2013-evolution-7ab8b4d248a398bce2cec081274cfba0dd8849b2.tar.zst
gsoc2013-evolution-7ab8b4d248a398bce2cec081274cfba0dd8849b2.zip
Memory leaks of GSettings objects
-rw-r--r--mail/e-mail-reader-utils.c1
-rw-r--r--modules/calendar/e-memo-shell-content.c2
-rw-r--r--plugins/save-calendar/rdf-format.c1
3 files changed, 4 insertions, 0 deletions
diff --git a/mail/e-mail-reader-utils.c b/mail/e-mail-reader-utils.c
index b91b91d500..c6bdebbfb8 100644
--- a/mail/e-mail-reader-utils.c
+++ b/mail/e-mail-reader-utils.c
@@ -162,6 +162,7 @@ e_mail_reader_confirm_delete (EMailReader *reader)
exit:
g_clear_object (&folder);
+ g_clear_object (&settings);
return (response == GTK_RESPONSE_OK);
}
diff --git a/modules/calendar/e-memo-shell-content.c b/modules/calendar/e-memo-shell-content.c
index 621567c237..dca724df13 100644
--- a/modules/calendar/e-memo-shell-content.c
+++ b/modules/calendar/e-memo-shell-content.c
@@ -287,6 +287,8 @@ memo_shell_content_restore_state_cb (EShellWindow *shell_window,
settings, "memo-vpane-position",
priv->paned, "vposition",
G_SETTINGS_BIND_DEFAULT);
+
+ g_object_unref (settings);
}
static void
diff --git a/plugins/save-calendar/rdf-format.c b/plugins/save-calendar/rdf-format.c
index 3ca37b1ca1..49eb365d9b 100644
--- a/plugins/save-calendar/rdf-format.c
+++ b/plugins/save-calendar/rdf-format.c
@@ -55,6 +55,7 @@ calendar_config_get_timezone (void)
settings = g_settings_new ("org.gnome.evolution.calendar");
retval = g_settings_get_string (settings, "timezone");
+ g_object_unref (settings);
if (!retval)
retval = g_strdup ("UTC");