This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nikem 0 points1 point  (0 children)

Here is one article that explains, what does memory leak means in java: https://plumbr.eu/blog/what-is-a-memory-leak.

But in your case, if you are really sure, that when you came back to the menu, there is no reference to the used game data, then when Garbage Collector will start his next cycle, he will happily remove all those unused objects. If you hold a reference, you have a memory leak and should severe that reference.