I am using bullet in a commercial product as well, so this is quite normal. Actually by tracking leak in my software I track Bullet's one in the same time
Glad I can help a (very) little bit this great library !!
It seems there are some others, so I will spend my day tracking those again. Will let you know.
Concerning ReleaseResult():
- one should be addded in ConvexBuilder.cpp line 186
- one should be addded in ConvexBuilder.cpp line 329 after "mCallback->ConvexDecompResult(r);"
- one in ConvexDecomposition.cpp line 164 after "callback->ConvexDecompResult(r);"
[edit] I couldn't find any other memory leak in the part of the library I use.
[edit 2] Yes there are others:
in btSoftBody.cpp, line 765, mCluster are allocated but never freed (m_clusters
= new(btAlignedAlloc(sizeof(Cluster),16)) Cluster();)
You could add this in class destructor:
for(i=0;i<m_clusters.size();++i)
btAlignedFree(m_clusters);