issue #2271: fixed memory leak of CCTextureCache::snapshotTextures()

This commit is contained in:
minggo 2013-06-09 15:03:38 +08:00
parent 1a0789cd11
commit c84a071ae5
1 changed files with 1 additions and 0 deletions

View File

@ -232,6 +232,7 @@ CCDictionary* CCTextureCache::snapshotTextures()
{ {
pRet->setObject(pElement->getObject(), pElement->getStrKey()); pRet->setObject(pElement->getObject(), pElement->getStrKey());
} }
pRet->autorelease();
return pRet; return pRet;
} }