over at Autodesk we run Field3D under Valgrind, and we discovered that Field3D leaks a number of singletons in static variable pointers. This patch fixes these memory leaks by replacing the raw pointers with boost::scoped_ptr that will properly delete the objects when the library is unloaded.
Hi,
over at Autodesk we run Field3D under Valgrind, and we discovered that Field3D leaks a number of singletons in static variable pointers. This patch fixes these memory leaks by replacing the raw pointers with boost::scoped_ptr that will properly delete the objects when the library is unloaded.