You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After this, I got some like 9 or 10 memory leak reports. Using visual leak detector, I was able to track down which buffers are not freed and here's the list (which I free manually):
All getting memory through ReallocateBuffer(). I don't know if this is a bug in ReallocateBuffer or box2d's own blockAllocator memory allocation system.
This has been fixed in a couple of ways.
Firstly, we modified b2ParticleSystem to explicitly free all allocated memory. In addition, we fixed b2BlockAllocator to free anything it allocates on destruction since large blocks would be leaked. https://github.com/google/liquidfun/releases/tag/v1.0.0
Hi
I just put the following lines in main() in Testbed for memory leak check:
if defined(_WIN32)
// Enable memory-leak reports
_CrtSetDbgFlag(_CRTDBG_LEAK_CHECK_DF | _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG));
endif
the result shows large memory leak.
The text was updated successfully, but these errors were encountered: