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
This commit is contained in:
Thomas James Alexander Thurman
2009-01-28 02:08:09 +00:00
parent 1381f6d5f2
commit 69ae9e4a9d
2 changed files with 7 additions and 0 deletions

View File

@ -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");