Alan-FGR / SharpPhysX

Modern C# bindings for NVIDIA PhysX SDK 4
https://alan-fgr.github.io/SharpPhysX/
MIT License
23 stars 4 forks source link

Memory #3

Closed OnlyloveSY closed 10 months ago

OnlyloveSY commented 1 year ago
auto ret = *(new std::remove_pointer<PxGroupsMaskPtr>::type());
auto heap = new char[sizeof PxGroupsMask];

There are many similar writing methods in the code, wouldn't this cause a memory leak?

OnlyloveSY commented 1 year ago

@Alan-FGR

Alan-FGR commented 10 months ago

Sorry for the late reply. You're right. Not sure that's a bug in minBND or what. If you need PhysX, I recommend this: https://github.com/MochiLibraries/Mochi.PhysX I might at some point come back to this project, but no ETA and not too happy with the direction PhysX is going. PhysX 4 is still a pretty good physics engine though.