Index: gnome-vfs-uri.c
===================================================================
RCS file: /cvs/gnome/gnome-vfs/libgnomevfs/gnome-vfs-uri.c,v
retrieving revision 1.124
diff -u -p -r1.124 gnome-vfs-uri.c
--- gnome-vfs-uri.c	15 Jul 2005 09:22:44 -0000	1.124
+++ gnome-vfs-uri.c	1 Sep 2005 08:12:04 -0000
@@ -1331,6 +1331,7 @@ gnome_vfs_uri_get_parent (const GnomeVFS
 			/* copy the uri and replace the uri text with the new parent text */
 			new_uri = gnome_vfs_uri_dup (uri);
 			g_free (new_uri->text);
+			new_uri->text = NULL;
 			new_uri->text = new_uri_text;
 
 			/* The parent doesn't have the child's fragment */
