[gthumb] Opening corrupt Olympus raw file causes Segmentation fault.



commit 9f7422a4515c1c3450ef14cf1cfef9b07a102cac
Author: Greg Mansfield <G Mansfield computer org>
Date:   Fri Jan 27 08:08:21 2012 -0500

    Opening corrupt Olympus raw file causes Segmentation fault.

 extensions/image_viewer/gth-image-viewer-page.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/extensions/image_viewer/gth-image-viewer-page.c b/extensions/image_viewer/gth-image-viewer-page.c
index 26ecbcd..27e5b0c 100644
--- a/extensions/image_viewer/gth-image-viewer-page.c
+++ b/extensions/image_viewer/gth-image-viewer-page.c
@@ -389,6 +389,8 @@ image_preloader_requested_ready_cb (GthImagePreloader  *preloader,
 				    GError             *error,
 				    GthImageViewerPage *self)
 {
+	if (image == NULL)
+		return;
 	if (! _g_file_equal (requested->file, self->priv->file_data->file))
 		return;
 



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