{"action":"created","issue":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/9690","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/9690/labels{/name}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/9690/comments","events_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/9690/events","html_url":"https://github.com/cocos2d/cocos2d-x/issues/9690","id":53030064,"number":9690,"title":"pushScene and popScene bug.","user":{"login":"fusijie","id":5085300,"avatar_url":"https://avatars.githubusercontent.com/u/5085300?v=3","gravatar_id":"","url":"https://api.github.com/users/fusijie","html_url":"https://github.com/fusijie","followers_url":"https://api.github.com/users/fusijie/followers","following_url":"https://api.github.com/users/fusijie/following{/other_user}","gists_url":"https://api.github.com/users/fusijie/gists{/gist_id}","starred_url":"https://api.github.com/users/fusijie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fusijie/subscriptions","organizations_url":"https://api.github.com/users/fusijie/orgs","repos_url":"https://api.github.com/users/fusijie/repos","events_url":"https://api.github.com/users/fusijie/events{/privacy}","received_events_url":"https://api.github.com/users/fusijie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-12-29T09:46:12Z","updated_at":"2015-01-07T21:23:48Z","closed_at":null,"body":"`version:` v3.3Final\r\n`issue:` repeat to push and pop scene. the program crashed.\r\n`reproduce:` download the zip, then unzip to HelloWorld Project.\r\n`How to fix it:` \r\ncomment the following line:\r\n\r\n``` cpp\r\nbool MenuItemLabel::initWithLabel(Node* label, Ref* target, SEL_MenuHandler selector)\r\n{\r\n\t_target = target;\r\n//\tCC_SAFE_RETAIN(_target);\r\n\treturn initWithLabel(label, std::bind(selector,target, std::placeholders::_1) );\r\n}\r\n```\r\n\r\n``` cpp\r\nvoid MenuItem::onExit()\r\n{\r\n\tNode::onExit();\r\n\t//CC_SAFE_RELEASE(_target);\r\n}\r\n```\r\nbut I don't know it is the right way or not? Somebody help?\r\n[click me to download the zip](http://www.cocoachina.com/bbs/job.php?action=download&aid=83476)\r\n"},"comment":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/comments/69094525","html_url":"https://github.com/cocos2d/cocos2d-x/issues/9690#issuecomment-69094525","issue_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/9690","id":69094525,"user":{"login":"zachprinz","id":3316072,"avatar_url":"https://avatars.githubusercontent.com/u/3316072?v=3","gravatar_id":"","url":"https://api.github.com/users/zachprinz","html_url":"https://github.com/zachprinz","followers_url":"https://api.github.com/users/zachprinz/followers","following_url":"https://api.github.com/users/zachprinz/following{/other_user}","gists_url":"https://api.github.com/users/zachprinz/gists{/gist_id}","starred_url":"https://api.github.com/users/zachprinz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zachprinz/subscriptions","organizations_url":"https://api.github.com/users/zachprinz/orgs","repos_url":"https://api.github.com/users/zachprinz/repos","events_url":"https://api.github.com/users/zachprinz/events{/privacy}","received_events_url":"https://api.github.com/users/zachprinz/received_events","type":"User","site_admin":false},"created_at":"2015-01-07T21:23:48Z","updated_at":"2015-01-07T21:23:48Z","body":"I was having this issue. \r\n\r\nI checked out the recent changes made to CCMenuItem and saw that there was a commit made recently that overwrites the onExit method in CCMenuItem. \r\n\r\nhttps://github.com/cocos2d/cocos2d-x/commit/93fdcf1f041e2946b300f505dc3cc64805b27095\r\n\r\nAfter I removed these additions in my CCMenuItem.h the issue no longer occurred."}}