From fccb1f3a46d95e85af7af7490cac8d8e394b6439 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 27 Apr 2010 09:39:00 +0200 Subject: test cleanup --- .../jogamp/test/junit/jogl/texture/TestTexture01AWT.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3