summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-04-27 09:39:00 +0200
committerSven Gothel <[email protected]>2010-04-27 09:39:00 +0200
commitfccb1f3a46d95e85af7af7490cac8d8e394b6439 (patch)
tree0416ea4ba6b2b12db285d300619ee5cd68afd5cc
parentd370be30dc75cc3b63246f026090a7377bf07135 (diff)
test cleanup
-rwxr-xr-xsrc/junit/com/jogamp/test/junit/jogl/texture/TestTexture01AWT.java14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/junit/com/jogamp/test/junit/jogl/texture/TestTexture01AWT.java b/src/junit/com/jogamp/test/junit/jogl/texture/TestTexture01AWT.java
index dbd685760..45c782d38 100755
--- a/src/junit/com/jogamp/test/junit/jogl/texture/TestTexture01AWT.java
+++ b/src/junit/com/jogamp/test/junit/jogl/texture/TestTexture01AWT.java
@@ -48,6 +48,7 @@ import java.awt.GradientPaint;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
+import org.junit.After;
import org.junit.Before;
import org.junit.Test;
@@ -75,9 +76,20 @@ public class TestTexture01AWT {
g.drawImage(baseImage, 0, 0, null);
g.dispose();
+ baseImage.flush();
+ baseImage=null;
+
frame = new Frame("Texture Test");
}
+ @After
+ public void cleanup() {
+ textureImage.flush();
+ textureImage=null;
+ frame.dispose();
+ frame=null;
+ }
+
@Test
public void test1() throws InterruptedException {
GLCapabilities caps = new GLCapabilities(GLProfile.get(GLProfile.GL2GL3));
@@ -98,8 +110,6 @@ public class TestTexture01AWT {
animator.stop();
frame.setVisible(false);
frame.remove(glCanvas);
- frame.dispose();
- frame=null;
glCanvas=null;
}