Apply patch from bug 335220 (mem leaks in gnome-wp-item)

2007-01-07  Thomas Wood  <thos@gnome.org>

	* gnome-wp-item.c: (gnome_wp_item_get_thumbnail):
	* gnome-wp-xml.c: (gnome_wp_xml_load_list):

	Apply patch from bug 335220 (mem leaks in gnome-wp-item)

svn path=/trunk/; revision=7077
This commit is contained in:
Thomas Wood 2007-01-07 13:25:23 +00:00 committed by Thomas Wood
parent 809b57b71b
commit 4c4c2644b8
3 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,10 @@
2007-01-07 Thomas Wood <thos@gnome.org>
* gnome-wp-item.c: (gnome_wp_item_get_thumbnail):
* gnome-wp-xml.c: (gnome_wp_xml_load_list):
Apply patch from bug 335220 (mem leaks in gnome-wp-item)
2007-01-06 Lucas Rocha <lucasr.at.mundo@gmail.com>
Fixes #336286

View file

@ -332,6 +332,7 @@ GdkPixbuf * gnome_wp_item_get_thumbnail (GnomeWPItem * item,
}
void gnome_wp_item_update_description (GnomeWPItem * item) {
g_free (item->description);
if (!strcmp (item->filename, "(none)")) {
item->description = g_strdup_printf ("<b>%s</b>", item->name);

View file

@ -303,7 +303,7 @@ void gnome_wp_xml_load_list (GnomeWPCapplet * capplet) {
g_free (filename);
}
}
g_list_free (list);
gnome_vfs_file_info_list_free (list);
gnome_vfs_monitor_add (&handle, datadir, GNOME_VFS_MONITOR_DIRECTORY,
(GnomeVFSMonitorCallback) gnome_wp_file_changed,
@ -330,7 +330,7 @@ void gnome_wp_xml_load_list (GnomeWPCapplet * capplet) {
g_free (filename);
}
}
g_list_free (list);
gnome_vfs_file_info_list_free (list);
gnome_vfs_monitor_add (&handle, WALLPAPER_DATADIR, GNOME_VFS_MONITOR_DIRECTORY,
(GnomeVFSMonitorCallback) gnome_wp_file_changed,