don't crash if we could not get the file information.
2004-01-12 Diego Gonzalez <diego@pemas.net> * gnome-wp-xml.c (gnome_wp_load_legacy): don't crash if we could not get the file information.
This commit is contained in:
parent
a603a03a23
commit
c8c2cd5023
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-01-12 Diego Gonzalez <diego@pemas.net>
|
||||
|
||||
* gnome-wp-xml.c (gnome_wp_load_legacy): don't crash if we could
|
||||
not get the file information.
|
||||
|
||||
2004-01-12 Jody Goldberg <jody@gnome.org>
|
||||
|
||||
* Makefile.am : As long as we're hard coding the path hard code it in
|
||||
|
|
|
@ -81,6 +81,10 @@ static void gnome_wp_load_legacy (GnomeWPCapplet * capplet) {
|
|||
item->filename = g_strdup (foo);
|
||||
|
||||
item->fileinfo = gnome_wp_info_new (item->filename, capplet->thumbs);
|
||||
if (item->fileinfo == NULL) {
|
||||
g_free (item);
|
||||
continue;
|
||||
}
|
||||
|
||||
item->shade_type = gconf_client_get_string (capplet->client,
|
||||
WP_SHADING_KEY, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue