[gthumb] resize: cancel the operation when closing
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] resize: cancel the operation when closing
- Date: Sat, 9 Nov 2013 19:59:37 +0000 (UTC)
commit 000928a44b77b7fd4a74d298a09fb2098e699e30
Author: Paolo Bacchilega <paobac src gnome org>
Date: Wed Sep 25 19:01:21 2013 +0200
resize: cancel the operation when closing
extensions/file_tools/gth-file-tool-resize.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/extensions/file_tools/gth-file-tool-resize.c b/extensions/file_tools/gth-file-tool-resize.c
index 3fdd31a..72e1d52 100644
--- a/extensions/file_tools/gth-file-tool-resize.c
+++ b/extensions/file_tools/gth-file-tool-resize.c
@@ -740,7 +740,13 @@ original_image_task_completed_cb (GthTask *task,
self->priv->resize_task = NULL;
- if (self->priv->closing || (error != NULL)) {
+ if (self->priv->closing) {
+ g_object_unref (task);
+ gth_file_tool_resize_cancel (GTH_FILE_TOOL (self));
+ return;
+ }
+
+ if (error != NULL) {
g_object_unref (task);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]