### Eclipse Workspace Patch 1.0
#P gthumb-svn
Index: libgthumb/image-viewer.c
===================================================================
--- libgthumb/image-viewer.c	(revision 2486)
+++ libgthumb/image-viewer.c	(working copy)
@@ -1227,9 +1227,13 @@
 	ImageViewerPrivate* priv = IMAGE_VIEWER_GET_PRIVATE (lidata->viewer);
 	FileData *file;
 	
+	file = file_data_new (lidata->file->path);
+	
 	file_data_update_mime_type (file, FALSE);  /* always slow mime type ? */
 	image_loader_set_file (priv->loader, file);
 	
+	file_data_unref (file);
+	
 	image_loader_start (priv->loader);
 	load_image_data_free (lidata);
 }

