OSDN Git Service

Properly dispose
authorXoppa <contact@xoppa.nl>
Sun, 17 Feb 2013 00:35:45 +0000 (01:35 +0100)
committerXoppa <contact@xoppa.nl>
Sun, 17 Feb 2013 00:35:45 +0000 (01:35 +0100)
tests/gdx-tests/src/com/badlogic/gdx/tests/bullet/CollisionTest.java
tests/gdx-tests/src/com/badlogic/gdx/tests/bullet/ShootTest.java

index a0c2f14..f8f789b 100644 (file)
@@ -128,4 +128,10 @@ public class CollisionTest extends ShootTest {
                projectile = shoot(x, y);
                return true;
        }
+       
+       @Override
+       public void dispose () {
+               super.dispose();
+               projectile = null;
+       }
 }
index fafacd6..d63bfc8 100644 (file)
@@ -57,4 +57,10 @@ public class ShootTest extends BaseBulletTest {
                shoot(x, y);
                return true;
        }
+       
+       @Override
+       public void dispose () {
+               super.dispose();
+               ground = null;
+       }
 }