Re: [PATCH spice-gtk] file xfer: Fix segfault when rebooting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/05/2015 07:37 PM, Jonathon Jongsma wrote:

>>>          g_file_read_async(files[i],
>>>                            G_PRIORITY_DEFAULT,
>>>                            cancellable,
>>>                            file_xfer_read_async_cb,
>>> -                          task);
>>> +                          g_object_ref(task));
>>
>> This looks like it will leak. There is now 2 refs, right? where are
>> the corresponding 2 unrefs? I count one with the hash table.
> 
> 
> There's still the unref that was originally freeing the task: in
> file_xfer_close_cb()
> 
> 

ACK, the g_hash_table_remove() call will do the remaining g_object_unref().

-- 
Eduardo de Barros Lima (Etrunko)
Software Engineer - RedHat
etrunko@xxxxxxxxxx
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]