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

@ -1,3 +1,8 @@
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> 2009-01-27 Matthias Claesen <mclasen@redhat.com>
* src/ui/ui.c: free the result of gdk_text_property_to_utf8_list() * src/ui/ui.c: free the result of gdk_text_property_to_utf8_list()

View File

@ -1333,6 +1333,8 @@ theme_name_handler (MetaPreference pref,
const gchar *string_value, const gchar *string_value,
gboolean *inform_listeners) gboolean *inform_listeners)
{ {
g_free (current_theme);
/* Fallback crackrock */ /* Fallback crackrock */
if (string_value == NULL) if (string_value == NULL)
current_theme = g_strdup ("Atlanta"); current_theme = g_strdup ("Atlanta");