Don't free data we don't own. Prevents crash when changing themes.

2007-05-13  Thomas Wood  <thos@gnome.org>

	* appearance-themes.c: (theme_thumbnail_func): Don't free data we don't own.
	Prevents crash when changing themes.

svn path=/trunk/; revision=7617
This commit is contained in:
Thomas Wood 2007-05-13 19:30:35 +00:00 committed by Thomas Wood
parent fc7b01eb53
commit 0b671b7b69
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2007-05-13 Thomas Wood <thos@gnome.org>
* appearance-themes.c: (theme_thumbnail_func): Don't free data we don't own.
Prevents crash when changing themes.
2007-05-13 Jens Granseuer <jensgr@gmx.net>
* appearance-themes.c: (themes_init), (theme_thumbnail_generate),

View file

@ -154,7 +154,6 @@ theme_thumbnail_func (GdkPixbuf *pixbuf, struct theme_thumbnail_func_data *data)
}
data->list = g_list_remove (data->list, info);
gnome_theme_meta_info_free (info);
if (data->list)
/* we can't call theme_thumbnail_generate directly since the thumbnail