예제 #1
0
 @Override
 public void flush() {
   if (gi != 0) {
     if (WinGraphicsDevice.useGDI) WinGDIGraphics2D.disposeGraphicsInfo(gi);
     else WinGDIPGraphics2D.disposeGraphicsInfo(gi);
     gi = 0;
   }
   if (surface != null) surface.dispose();
   super.flush();
 }
예제 #2
0
 @Override
 protected void finalize() throws Throwable {
   flush();
   super.finalize();
 }