[gthumb] gth-pixbuf-list-task: avoid crash if the new image is not set



commit 4b3a4fc67dd8637160f506cace8b1b8ed53b97cb
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Thu Aug 19 13:28:12 2010 +0200

    gth-pixbuf-list-task: avoid crash if the new image is not set

 gthumb/gth-pixbuf-list-task.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gthumb/gth-pixbuf-list-task.c b/gthumb/gth-pixbuf-list-task.c
index 2d18f4f..5cee903 100644
--- a/gthumb/gth-pixbuf-list-task.c
+++ b/gthumb/gth-pixbuf-list-task.c
@@ -263,6 +263,11 @@ pixbuf_task_save_current_pixbuf (GthPixbufListTask *self,
 	if (file != NULL)
 		gth_file_data_set_file (self->priv->destination_file_data, file);
 
+	if (GTH_PIXBUF_TASK (self->priv->task)->dest == NULL) {
+		process_next_file (self);
+		return;
+	}
+
 	_g_object_unref (self->priv->new_pixbuf);
 	self->priv->new_pixbuf = g_object_ref (GTH_PIXBUF_TASK (self->priv->task)->dest);
 



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