[gthumb] image loader: clear the image if the operation was cancelled
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] image loader: clear the image if the operation was cancelled
- Date: Tue, 15 May 2018 08:35:25 +0000 (UTC)
commit 4dff961affac7c2b8a6fea9181cb76c06796dbb2
Author: Paolo Bacchilega <paobac src gnome org>
Date: Tue May 15 10:31:08 2018 +0200
image loader: clear the image if the operation was cancelled
gthumb/gth-image-loader.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gthumb/gth-image-loader.c b/gthumb/gth-image-loader.c
index e464b99..11d5f86 100644
--- a/gthumb/gth-image-loader.c
+++ b/gthumb/gth-image-loader.c
@@ -233,6 +233,7 @@ load_image_thread (GSimpleAsyncResult *result,
}
if (g_cancellable_is_cancelled (cancellable)) {
+ _g_clear_object (&image);
g_clear_error (&error);
g_set_error_literal (&error, G_IO_ERROR, G_IO_ERROR_CANCELLED, "");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]