gthumb r2488 - in trunk: . libgthumb
- From: mjc svn gnome org
- To: svn-commits-list gnome org
- Subject: gthumb r2488 - in trunk: . libgthumb
- Date: Mon, 5 Jan 2009 15:01:38 +0000 (UTC)
Author: mjc
Date: Mon Jan 5 15:01:37 2009
New Revision: 2488
URL: http://svn.gnome.org/viewvc/gthumb?rev=2488&view=rev
Log:
2009-01-05 Michael J. Chudobiak <mjc svn gnome org>
* libgthumb/image-viewer.c: (load_image__step2):
Fixed crash due to unitialized FileData introduced in the refactoring
of the image viewer (see bug #501512). Patch by Christophe BisiÃre.
Bug #566377.
Modified:
trunk/ChangeLog
trunk/libgthumb/image-viewer.c
Modified: trunk/libgthumb/image-viewer.c
==============================================================================
--- trunk/libgthumb/image-viewer.c (original)
+++ trunk/libgthumb/image-viewer.c Mon Jan 5 15:01:37 2009
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]