summaryrefslogtreecommitdiff
path: root/src/core
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 /src/core
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
Diffstat (limited to 'src/core')
-rw-r--r--src/core/prefs.c2
1 files changed, 2 insertions, 0 deletions
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");