Merge pull request #1664 from erwincoumans/master

PyBullet: fix some memory leaks
This commit is contained in:
erwincoumans
2018-05-02 13:54:07 -07:00
committed by GitHub
3 changed files with 9 additions and 2 deletions

View File

@@ -756,6 +756,12 @@ public:
delete m_debugDraw;
m_debugDraw = 0;
}
for (int i=0;i<m_userDebugParams.size();i++)
{
delete m_userDebugParams[i];
}
m_userDebugParams.clear();
}
void setCriticalSection(b3CriticalSection* cs)