Index: glade-xml.c
===================================================================
RCS file: /cvs/gnome/libglade/glade/glade-xml.c,v
retrieving revision 1.107
diff -u -r1.107 glade-xml.c
--- glade-xml.c	23 Jan 2004 00:54:35 -0000	1.107
+++ glade-xml.c	10 Mar 2004 17:49:30 -0000
@@ -1548,16 +1548,22 @@
 	    GdkPixbuf *pixbuf;
 
 	    filename = glade_xml_relative_file(xml, string);
-	    pixbuf = gdk_pixbuf_new_from_file(filename, &error);
-	    if (pixbuf) {
-		g_value_set_object(value, pixbuf);
-		g_object_unref(G_OBJECT(pixbuf));
-	    } else {
-		g_warning("Error loading image: %s", error->message);
-		g_error_free(error);
-		ret = FALSE;
+	    if (filename) {
+		    pixbuf = gdk_pixbuf_new_from_file(filename, &error);
+		    if (pixbuf) {
+			g_value_set_object(value, pixbuf);
+			g_object_unref(G_OBJECT(pixbuf));
+		    } else {
+			g_warning("Error loading image: %s", error->message);
+			g_error_free(error);
+			ret = FALSE;
+		    }
+		    g_free(filename);
+	    }
+	    else {
+		g_warning("Error loading image: %s, Failed to find relative path", string);
+	    	ret = FALSE;
 	    }
-	    g_free(filename);
 	} else
 	    ret = FALSE;
 	break;
