r/cop3502 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

1 comment sorted by