epiphany r8241 - in trunk: . src/bookmarks



Author: diegoe
Date: Tue May 20 06:03:23 2008
New Revision: 8241
URL: http://svn.gnome.org/viewvc/epiphany?rev=8241&view=rev

Log:
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.


Modified:
   trunk/   (props changed)
   trunk/src/bookmarks/ephy-bookmarks-import.c

Modified: trunk/src/bookmarks/ephy-bookmarks-import.c
==============================================================================
--- trunk/src/bookmarks/ephy-bookmarks-import.c	(original)
+++ trunk/src/bookmarks/ephy-bookmarks-import.c	Tue May 20 06:03:23 2008
@@ -83,7 +83,6 @@
 				       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 @@
 		g_free (basename);
 	}
 
+	g_object_unref (file_info);
 	g_object_unref (file);
 
 	return success;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]