v0.5.0b: plugged a memory leak with the game log
This commit is contained in:
parent
bea1623495
commit
647489b1b9
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user