FX: make sure dispose() is called on exit

This commit is contained in:
Jakub Valtar
2016-04-17 14:59:15 +02:00
parent b5e09b474a
commit eec809091e
@@ -337,6 +337,11 @@ public class PSurfaceFX implements PSurface {
// the stage, assign it only when it is all set up
surface.stage = stage;
}
@Override
public void stop() throws Exception {
surface.sketch.dispose();
}
}