Commit ab4a15da authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson

unref, not free the GFile. Fixes crash in close parent windows (#509821)

2008-01-16  Alexander Larsson  <alexl@redhat.com>

        * src/nautilus-application.c:
        (find_parent_spatial_window):
	unref, not free the GFile.
	Fixes crash in close parent windows (#509821)


svn path=/trunk/; revision=13612
parent 5444819a
2008-01-16 Alexander Larsson <alexl@redhat.com>
* src/nautilus-application.c:
(find_parent_spatial_window):
unref, not free the GFile.
Fixes crash in close parent windows (#509821)
2008-01-16 Alexander Larsson <alexl@redhat.com>
* src/nautilus-file-management-properties.c:
......
......@@ -897,7 +897,7 @@ find_parent_spatial_window (NautilusSpatialWindow *window)
return NULL;
}
file = nautilus_file_get (location);
g_free (location);
g_object_unref (location);
if (!file) {
return NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment