[vlc-devel] commit: Detach the children at object destruction ( Rafaël Carré )

Pierre d'Herbemont pdherbemont at free.fr
Fri May 16 14:48:10 CEST 2008


On May 16, 2008, at 2:44 PM, Pierre d'Herbemont wrote:

>
> On May 16, 2008, at 2:24 PM, Pierre d'Herbemont wrote:
>
>>
>> On May 16, 2008, at 2:19 PM, Rafaël Carré wrote:
>>
>>> 2008/5/16 Remi Denis-Courmont <rdenis at simphalempin.com>:
>>>>
>>>> On Fri, 16 May 2008 14:02:39 +0200 (CEST), git at videolan.org (git
>>>> version
>>>> control) wrote:
>>>>> vlc | branch: master | Rafaël Carré <funman at videolan.org> | Fri
>>>>> May 16
>>>>> 14:03:48 2008 +0200| [e5b3d194ffa17dcbf57e69ebf83c3730e8938932]
>>>>>
>>>>> Detach the children at object destruction
>>>>
>>>> This is as wrong as the previous commit.
>>>
>>> How ?
>>> Maybe setting i_children to 0 is the correct way, but then why is
>>> there a check in vlc_object_destroy() ?
>>
>> The problem we are facing comes from the fact that if p_parent is set
>> to NULL, then the child object can't be vlc_object_detach()-ed. So,  
>> it
>> basically remains as a children.
>>
>> Something is wrong somewhere.
>
> I have a patch for that. Please review and apply.<0001-objects- 
> Protect-from-FIND_PARENT-directly-in-the-FI.patch>

(without typo this time)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-objects-Protect-from-FIND_PARENT-directly-in-the-FI.patch
Type: application/octet-stream
Size: 2776 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20080516/0ef298b7/attachment.obj>
-------------- next part --------------



Pierre.


More information about the vlc-devel mailing list