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:
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.
On 15/08/2007 at 04:19, xxxxxxxx wrote:
Freeing the topmost object should also free its hierarchy.
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.