Projects > cpp > Issues > Bug #1494

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

Create Issue on Github

Missing removing auto-release object from AutoReleasePool if invoking 'autorelease' method more times.

Bug #1494 [Closed]
dumganhar 2012-10-08 05:40 . Updated about 6 years ago

In the following example, crashes or memoryleak will appear.

CCObject* pObj = new CCObject();
pObj->release();   // this will delete pObj directly, but it only removes object pointer once. The autorelease pool will contain one bad pointer.
dumganhar 2012-10-08 11:40
  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset commit:03996ae2d96c705576131cded2477d6e2cd69363.

dumganhar 2012-10-08 11:40

Applied in changeset commit:63d2a2677727427e16fc9e87f31f5f017e69e530.

zhangxm 2012-10-08 11:40

Applied in changeset commit:4f9545d40cabf2dfb74362bccb9f3c4a04d6639c. 2012-10-09 04:16
  • Status changed from Resolved to Closed

Atom PDF

Start date:2012-10-08
Due date:
% Done:


Target version:cocos2d-2.0-x-2.0.4

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