I think you should dispose the ShapeRenderer here.