Don't free file_info too soon or the pointer to file_type will be lost. This

fixes bookmark imports not working (note that HTML import is not working, only
RDF). Patch by Sebastian Keller, closes: #523414.


svn path=/branches/gnome-2-22/; revision=8240
parent b8b5ce3b
......@@ -83,7 +83,6 @@ ephy_bookmarks_import (EphyBookmarks *bookmarks,
G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE,
0, NULL, NULL);
type = g_file_info_get_content_type (file_info);
g_object_unref (file_info);
g_debug ("Importing bookmarks of type %s", type ? type : "(null)");
......@@ -132,6 +131,7 @@ ephy_bookmarks_import (EphyBookmarks *bookmarks,
g_free (basename);
}
g_object_unref (file_info);
g_object_unref (file);
return success;
......
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