I know the example you’re talking about, if the loaded object is saved to a reference, then setting the reference to null will release the object to GC.
Basically, if there was a runtime reference viewer, you need to make sure the object isn’t referenced.
Very difficult to check though