aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-12-15 18:12:41 +0800
committerMilan Crha <mcrha@redhat.com>2009-12-15 18:12:41 +0800
commit859c8b5a8fae36bdb615f35f792c8256d4c8f97e (patch)
tree020d25459a72882a3406d3f4f28641e72e9ceda9 /shell
parentc0c247128c71653e38c6a5de900a069e13a53d8e (diff)
downloadgsoc2013-evolution-859c8b5a8fae36bdb615f35f792c8256d4c8f97e.tar.gz
gsoc2013-evolution-859c8b5a8fae36bdb615f35f792c8256d4c8f97e.tar.zst
gsoc2013-evolution-859c8b5a8fae36bdb615f35f792c8256d4c8f97e.zip
Bug #603342 - Memory leak fixes
Diffstat (limited to 'shell')
-rw-r--r--shell/e-shell-settings.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/shell/e-shell-settings.c b/shell/e-shell-settings.c
index 21cc855beb..ac25d1f9e7 100644
--- a/shell/e-shell-settings.c
+++ b/shell/e-shell-settings.c
@@ -100,6 +100,8 @@ shell_settings_pspec_for_key (const gchar *property_name,
/* We'll fail in the next switch statement. */
break;
}
+ } else {
+ default_value = gconf_value_copy (default_value);
}
switch (value_type) {
@@ -151,6 +153,7 @@ shell_settings_pspec_for_key (const gchar *property_name,
}
gconf_value_free (default_value);
+ gconf_schema_free (schema);
return pspec;