Ejemplo n.º 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
    }
Ejemplo n.º 2
0
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
}