Example #1
0
  @Override
  public void dispose() {
    groundObject.dispose();
    groundShape.dispose();

    ballObject.dispose();
    ballShape.dispose();

    dispatcher.dispose();
    collisionConfig.dispose();

    modelBatch.dispose();
    model.dispose();
  }
Example #2
0
 @Override
 public void dispose() {
   // Don't rely on the GC
   if (bodyInfo != null) bodyInfo.dispose();
   if (shape != null) shape.dispose();
   // Remove references so the GC can do it's work
   bodyInfo = null;
   shape = null;
 }