summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas James Alexander Thurman <tthurman@src.gnome.org>2009-01-28 02:08:09 +0000
committerThomas James Alexander Thurman <tthurman@src.gnome.org>2009-01-28 02:08:09 +0000
commit69ae9e4a9d5774d19434ad7c762180639cc4ed08 (patch)
treee7d72928a0b67588e2ce0f37cf16e481bf0804fc
parent1381f6d5f2e84820bd639d245320ddd0dbcb1e60 (diff)
downloadmetacity-69ae9e4a9d5774d19434ad7c762180639cc4ed08.tar.gz
Free name of old theme when new theme is loaded.
* src/core/prefs.c: Free name of old theme when new theme is loaded. svn path=/trunk/; revision=4094
-rw-r--r--ChangeLog5
-rw-r--r--src/core/prefs.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index a8d60d22..6642c241 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2009-01-27 Matthias Claesen <mclasen@redhat.com>
+ * src/core/prefs.c: Free name of old theme when new theme
+ is loaded.
+
+2009-01-27 Matthias Claesen <mclasen@redhat.com>
+
* src/ui/ui.c: free the result of gdk_text_property_to_utf8_list()
even when it returns no data.
diff --git a/src/core/prefs.c b/src/core/prefs.c
index 2a2e8e90..1f4fe410 100644
--- a/src/core/prefs.c
+++ b/src/core/prefs.c
@@ -1333,6 +1333,8 @@ theme_name_handler (MetaPreference pref,
const gchar *string_value,
gboolean *inform_listeners)
{
+ g_free (current_theme);
+
/* Fallback crackrock */
if (string_value == NULL)
current_theme = g_strdup ("Atlanta");