From 859c8b5a8fae36bdb615f35f792c8256d4c8f97e Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Tue, 15 Dec 2009 11:12:41 +0100 Subject: Bug #603342 - Memory leak fixes --- shell/e-shell-settings.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'shell/e-shell-settings.c') 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; -- cgit