Re: [Spice-devel] [spice-gtk] main: channel-main to increase file-transfer reference

2016-06-21 Thread Victor Toso
Hi, On Tue, Jun 21, 2016 at 02:00:23PM +0200, Marc-André Lureau wrote: > ack Thanks, pushed > > On Tue, Jun 14, 2016 at 3:01 PM, Victor Toso wrote: > > This is a minor fix in the logic as in both situations (with or > > without the patch) the reference count for the SpiceFileTransferTask > > ob

Re: [Spice-devel] [spice-gtk] main: channel-main to increase file-transfer reference

2016-06-21 Thread Marc-André Lureau
ack On Tue, Jun 14, 2016 at 3:01 PM, Victor Toso wrote: > This is a minor fix in the logic as in both situations (with or > without the patch) the reference count for the SpiceFileTransferTask > object is the same. > > The change is interesting as SpiceFileTransferTask is created but on > g_file_

[Spice-devel] [spice-gtk] main: channel-main to increase file-transfer reference

2016-06-14 Thread Victor Toso
This is a minor fix in the logic as in both situations (with or without the patch) the reference count for the SpiceFileTransferTask object is the same. The change is interesting as SpiceFileTransferTask is created but on g_file_read_async() it increases its reference count while c->file_xfer_task