[gthumb] image loader: do not use image is it's null
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] image loader: do not use image is it's null
- Date: Sun, 15 Mar 2015 17:36:49 +0000 (UTC)
commit 14f94d8474a656abf3dbb27f5611a6e652456074
Author: Paolo Bacchilega <paobac src gnome org>
Date: Mon Mar 2 18:31:43 2015 +0100
image loader: do not use image is it's null
gthumb/gth-image-loader.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gthumb/gth-image-loader.c b/gthumb/gth-image-loader.c
index 8dfb901..db2fbd0 100644
--- a/gthumb/gth-image-loader.c
+++ b/gthumb/gth-image-loader.c
@@ -217,7 +217,8 @@ load_image_thread (GSimpleAsyncResult *result,
_g_object_unref (istream);
- if (! g_cancellable_is_cancelled (cancellable)
+ if ((image != NULL)
+ && ! g_cancellable_is_cancelled (cancellable)
&& (self->priv->out_profile != NULL)
&& gth_image_get_icc_profile (image) != NULL)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]