Commit cc4b7665 authored by Paolo Bacchilega's avatar Paolo Bacchilega

image loader: clear the image if the operation was cancelled

parent 9b02a79b
......@@ -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, "");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment