ulf.schroeter Posted November 6, 2010 Share Posted November 6, 2010 Problem Call of C++ interface function Engine::shutdown() does not delete internal engine instance. Therefore engine instance destructor with shutdown call does not get called (e.g. causing no saving of configuration changes) Possible fix Explicit delete of engine instance in EngineInterface destructor. File engine/api/Unigine.cpp class EngineInterface : public Engine, public Singleton<EngineInterface> { public: ..... virtual ~EngineInterface() { delete engine; } ..... Link to comment
frustum Posted November 8, 2010 Share Posted November 8, 2010 I can't understand the problem. We have such code in the EngineInterface class: virtual ~EngineInterface() { delete engine; } Link to comment
ulf.schroeter Posted November 8, 2010 Author Share Posted November 8, 2010 I can't understand the problem. We have such code in the EngineInterface class: sorry, somehow we have droped it in our SVN. Link to comment
Recommended Posts