Commit 73ef35f9 authored by Jakub Janků's avatar Jakub Janků Committed by Frediano Ziglio

spice-file-xfer-task: unref properties on dispose

When the construction properties are set, the objects are
referenced by g_value_dup_object(), so they should be unref
once the task is done.

If the main channel stays referenced, spice session fails
to disconnect and the viewer does not close.
Signed-off-by: Jakub Janků's avatarJakub Janků <jjanku@redhat.com>
Acked-by: Frediano Ziglio's avatarFrediano Ziglio <fziglio@redhat.com>
parent 8e113b78
Pipeline #52445 passed with stage
in 8 minutes and 37 seconds
......@@ -648,6 +648,8 @@ spice_file_transfer_task_dispose(GObject *object)
g_clear_object(&self->file);
g_clear_object(&self->file_stream);
g_clear_error(&self->error);
g_clear_object(&self->channel);
g_clear_object(&self->cancellable);
G_OBJECT_CLASS(spice_file_transfer_task_parent_class)->dispose(object);
}
......
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