diff options
author | Thomas James Alexander Thurman <tthurman@src.gnome.org> | 2009-01-28 02:08:09 +0000 |
---|---|---|
committer | Thomas James Alexander Thurman <tthurman@src.gnome.org> | 2009-01-28 02:08:09 +0000 |
commit | 69ae9e4a9d5774d19434ad7c762180639cc4ed08 (patch) | |
tree | e7d72928a0b67588e2ce0f37cf16e481bf0804fc | |
parent | 1381f6d5f2e84820bd639d245320ddd0dbcb1e60 (diff) | |
download | metacity-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-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/core/prefs.c | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -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"); |