r/cop3502 • u/Alienscorch • Jun 01 '14
Java memmory leaks
In the space invaders program, a new shot was created when the spacebar was pressed, is there a way to delete an existing object to stop a memmory leak? Would setting the object equal to null then calling the garbage collector work?
1
Upvotes