All structure class must not call CCFramework.AllocateMemory() directly, except when they also release the memory immediately. Otherwise, they should call this.Allocate() as all memory allocated this way is freed when the class instance is released.
A new method FreeAllMemory() should be added to StructBase.
It must be documented that all structure pointers are only valid as long as the class instance exists.
All structure class must not call
CCFramework.AllocateMemory()
directly, except when they also release the memory immediately. Otherwise, they should callthis.Allocate()
as all memory allocated this way is freed when the class instance is released.A new method
FreeAllMemory()
should be added toStructBase
.It must be documented that all structure pointers are only valid as long as the class instance exists.