maul-esel / COM-Classes

AHK classes that implement COM interfaces
39 stars 10 forks source link

fix potential memory leaks #34

Closed maul-esel closed 12 years ago

maul-esel commented 12 years ago

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.