From 69ae9e4a9d5774d19434ad7c762180639cc4ed08 Mon Sep 17 00:00:00 2001 From: Thomas James Alexander Thurman Date: Wed, 28 Jan 2009 02:08:09 +0000 Subject: [PATCH] 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 --- ChangeLog | 5 +++++ src/core/prefs.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index a8d60d224..6642c2410 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-01-27 Matthias Claesen + + * src/core/prefs.c: Free name of old theme when new theme + is loaded. + 2009-01-27 Matthias Claesen * src/ui/ui.c: free the result of gdk_text_property_to_utf8_list() diff --git a/src/core/prefs.c b/src/core/prefs.c index 2a2e8e904..1f4fe4102 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");