Question on memory allocation

BlitzMax Forums/BlitzMax Beginners Area/Question on memory allocation

Some memory is used in linking an integer handle to a type - release frees the memory used for that. I guess when you release the handle, you have cleared the only reference to to mytype it points to, so that can be freed too on the next flushmem. b is of type mytype - no integer handle - so no handle memory to reclaim. To free the memory pointed to by b, set b=Null and Flushmem.