clean up MiniB3D - memory leak?

BlitzMax Modules Forums/MiniB3D/clean up MiniB3D - memory leak?

At the top of FreeEntity if you replace:

RemoveLink link

With

ListRemove(entity_list,Self)

It seems to fix a mem leak. Not sure why that is yet.

Note as well that if you are converting objects to ints like in the example above, you will have to use Release with the int to avoid mem leaks.

Probably better just to use objects, i.e.

cam:TCamera=CreateCamera()