BaseObject::Free() and hierarchies

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 14/08/2007 at 10:20, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   R8.2-R10 
Platform:   Windows  ; Mac  ;  Mac OSX  ; 
Language(s) :     C++  ;

---------
If an object is freed using BaseObject::Free(obj) or similar, are all of its children freed in the process as well or should I be recursively freeing children before parents? Since this is a result from a SendModelingCommand() and not yet inserted into the document, want to be sure that the memory isn't leaking about.

Thanks,

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 15/08/2007 at 04:19, xxxxxxxx wrote:

Freeing the topmost object should also free its hierarchy.

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 15/08/2007 at 08:06, xxxxxxxx wrote:

This is what I was hoping. :) If you remove and free a document, all of its contents go with it so this seems likely.

Thanks, Samir!