Clear memory leaks
This commit is contained in:
natural-law 2010-09-11 07:48:37 +00:00
parent b25f35d2c0
commit 2c682380ed
1 changed files with 4 additions and 0 deletions

View File

@ -41,6 +41,7 @@ THE SOFTWARE.
#include "CCBitmapFontAtlas.h"
#include "CCActionManager.h"
#include "CCLabel.h"
#include "CCConfiguration.h"
#if CC_ENABLE_PROFILERS
#include "support/CCProfiling.h"
@ -152,6 +153,9 @@ CCDirector::~CCDirector(void)
CCX_SAFE_RELEASE(m_pRunningScene);
CCX_SAFE_RELEASE(m_pobScenesStack);
// delete configuration pointer
CCConfiguration *conf = CCConfiguration::sharedConfiguration();
CCX_SAFE_RELEASE(conf);
// pop the autorelease pool
NSPoolManager::getInstance()->pop();