So I'm using AS3 box2d version 2.0.2
I'm done with my game but there seems to be a growing memory leak. I checked using the profiler "The Miner": http://www.sociodox.com/theminer/index.html (which I think is an incredible profiler but that's besides the point)
And it seems to be that the number of b2Body instances is constantly growing, despite me calling:
_world.DestroyBody(MyBody);
which causes the body to not show up anymore in debug draw, and yet it's still there in memory, never gets removed.
So I'm asking about the proper way to remove b2Body instances so that they don't keep growing like that. (Also b2Vec2 instances kept growing but I'm assuming that was tied with the b2Body leak)
Any help would be appreciated, thanks!
I'm done with my game but there seems to be a growing memory leak. I checked using the profiler "The Miner": http://www.sociodox.com/theminer/index.html (which I think is an incredible profiler but that's besides the point)
And it seems to be that the number of b2Body instances is constantly growing, despite me calling:
_world.DestroyBody(MyBody);
which causes the body to not show up anymore in debug draw, and yet it's still there in memory, never gets removed.
So I'm asking about the proper way to remove b2Body instances so that they don't keep growing like that. (Also b2Vec2 instances kept growing but I'm assuming that was tied with the b2Body leak)
Any help would be appreciated, thanks!