Projects > cpp > Issues > Bug #2418

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

Unused spriteframes also need to be removed when purgeCachedData

Bug #2418 [Closed]
dumganhar 2013-07-22 10:10 . Updated over 3 years ago

Fixed at

When a game running on iOS get a memory warning, cocos2d::Director::getInstance()->purgeCachedData() will be called.
However, most case, we use SpriteFrame which will retain textures.
So we also need to removeUnusedSpriteFrames when purgeCachedData.

dumganhar 2013-07-22 10:32
  • Status changed from New to Closed
  • % Done changed from 0 to 100

Applied in changeset commit:59aceeb0e3ff67e61bd1c887fdb20a4d2609b8fd.

Atom PDF

Start date:2013-07-22
Due date:
% Done:


Target version:3.0-alpha0-pre

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.