v0.5.0b: plugged a memory leak with the game log

This commit is contained in:
Evan Debenham 2017-02-13 22:57:45 -05:00
parent bea1623495
commit 647489b1b9

View File

@ -112,7 +112,9 @@ public class GameLog extends Component implements Signal.Listener<String> {
}
if (nLines > MAX_LINES) {
remove(members.get(0));
RenderedTextMultiline r = ((RenderedTextMultiline) members.get(0));
remove(r);
r.destroy();
entries.remove( 0 );
}