make sure that appearance.h (and thereby config.h) is included first;
2007-05-09 Jens Granseuer <jensgr@gmx.net> * appearance-style.c: make sure that appearance.h (and thereby config.h) is included first; constify strings * gnome-wp-xml.c: (gnome_wp_xml_load_xml): fix leak svn path=/trunk/; revision=7590
This commit is contained in:
parent
60bf46d133
commit
9b3abdb95d
3 changed files with 11 additions and 3 deletions
|
@ -229,6 +229,7 @@ static void gnome_wp_xml_load_xml (AppearanceData *data,
|
|||
wp->fileinfo = gnome_wp_info_new (wp->filename, data->wp_thumbs);
|
||||
|
||||
if (wp->name == NULL || !strcmp (wp->filename, "(none)")) {
|
||||
g_free (wp->name);
|
||||
wp->name = g_strdup (wp->fileinfo->name);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue