fix potential memory leaks

This commit is contained in:
Erwin Coumans
2017-06-07 19:00:44 -07:00
parent 46f2f3db4e
commit c1e32e6428
3 changed files with 15 additions and 0 deletions

View File

@@ -723,6 +723,11 @@ public:
virtual ~MultiThreadedOpenGLGuiHelper()
{
//delete m_childGuiHelper;
if (m_debugDraw)
{
delete m_debugDraw;
m_debugDraw = 0;
}
}
void setCriticalSection(b3CriticalSection* cs)