Lego Cleanup

by Legobumb
Just a basic "clean up" proc to aid in things being garbage collected [More]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://Legobumb.LegoCleanup##version=1

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:


Version v1.0
Date added: Jun 19 2020
Last updated: Jun 20 2020
0 fans
According to the DM reference, there are certain variables that count as references that would prevent an atom from otherwise being garbage collected. This tiny lib is just a Cleanup() proc that will null out those certain variables to aid in garbage collection when called. It is the user's responsibility to override and add any other variables they define in their games to the Cleanup() proc so that the garbage collector can continue to do its job.