v0.4.3: fixed a memory leak involving toasts
This commit is contained in:
parent
4c38f73fdf
commit
08371bfb91
|
@ -77,6 +77,13 @@ public class Toast extends Component {
|
|||
PixelScene.align(text);
|
||||
}
|
||||
|
||||
@Override
|
||||
public synchronized void kill() {
|
||||
super.kill();
|
||||
//need to also destroy the text so that memory is freed
|
||||
text.destroy();
|
||||
}
|
||||
|
||||
public void text( String txt ) {
|
||||
text.text( txt );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user