예제 #1
0
    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
    }
예제 #2
0
파일: Game.cpp 프로젝트: 5guo/GamePlay
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
}