mirror of https://github.com/axmolengine/axmol.git
issue #2271: fixed memory leak of CCTextureCache::snapshotTextures()
This commit is contained in:
parent
1a0789cd11
commit
c84a071ae5
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue