summaryrefslogtreecommitdiffstats
path: root/src/junit
diff options
context:
space:
mode:
Diffstat (limited to 'src/junit')
-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;
}