From ba17f5316ff437e7656f87c8a022bbbc077b4c51 Mon Sep 17 00:00:00 2001 From: Diego Escalante Urrelo Date: Tue, 20 May 2008 06:03:23 +0000 Subject: 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=/trunk/; revision=8241 --- src/bookmarks/ephy-bookmarks-import.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bookmarks') diff --git a/src/bookmarks/ephy-bookmarks-import.c b/src/bookmarks/ephy-bookmarks-import.c index 44f5fd63a..3e7096679 100644 --- a/src/bookmarks/ephy-bookmarks-import.c +++ b/src/bookmarks/ephy-bookmarks-import.c @@ -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; -- cgit v1.2.3