REGoth-project / REGoth

OpenSource-Reimplementation of the zEngine, used by the game "Gothic"
GNU General Public License v3.0
630 stars 63 forks source link

Fix Memory Leak in PhysicsSystem #296

Closed markusobi closed 6 years ago

markusobi commented 6 years ago

There are some new calls, that don't have an associated delete. for example:

btTriangleMesh* wm = new btTriangleMesh;

https://github.com/REGoth-project/REGoth/blob/master/src/physics/PhysicsSystem.cpp#L167