Game::~Game() { // Do not call any virtual functions from the destructor. // Finalization is done from outside this class. #ifdef GP_USE_MEM_LEAK_DETECTION Ref::printLeaks(); printMemoryLeaks(); #endif }
Game::~Game() { SAFE_DELETE(_scriptController); // Do not call any virtual functions from the destructor. // Finalization is done from outside this class. SAFE_DELETE(_timeEvents); #ifdef GAMEPLAY_MEM_LEAK_DETECTION Ref::printLeaks(); printMemoryLeaks(); #endif }