[Spice-devel] [spice-gtk v2 9/9] spicy: Fix spice_file_transfer_task_get_filename leak

Christophe Fergeau cfergeau at redhat.com
Wed Aug 3 08:59:25 UTC 2016


On Tue, Aug 02, 2016 at 11:48:50AM +0200, Victor Toso wrote:
> From: Christophe Fergeau <cfergeau at redhat.com>
> 
> It was wrongly annotated as (transfer none)
> 
> An alternative would be to store what is returned by
> g_file_get_basename() in SpiceFileTransferTask and return that, this
> would allow to make spice_file_transfer_task_get_filename() (transfer
> none) without leaking memory.

Here I'd mention that doing this would be an API/ABI change

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20160803/4574550d/attachment.sig>


More information about the Spice-devel mailing list