[vlc-devel] commit: Debug code to prevent FIND_PARENT from crashing. ( Rémi Denis-Courmont )

Rémi Denis-Courmont rdenis at simphalempin.com
Wed May 14 21:10:20 CEST 2008


Le Wednesday 14 May 2008 21:56:53 git version control, vous avez écrit :
> Objects must not have children when they are destroyed per the current
> design, though this seems to be a questionable choice.

When the "owner" of an object has an explicit type-specific 
Stop/Terminate/Destroy function, the object can destroy/detach from its 
children there. For instance, for plugin types, pf_close will do. Once the 
function returns, it is safe to vlc_object_release().

However, if the object type uses reference counting as an automatic object 
cleanup procedure, there is no way to ensure that the object being destroyed 
has no children.

-- 
Rémi Denis-Courmont
http://www.remlab.net/



More information about the vlc-devel mailing list