cocos2d/cocos2d-x — pull request #8032 by joewan (2014-09-14 14:35:54+00:00)
Title: fix memory leak when use menu_selector.

1.MenuItemFont::create("reset", this, menu_selector(UpdateLayer::reset ));
2.MenuItemFont::create("reset", CC_CALLBACK_1(UpdateLayer::reset, this));

The first old style will cause memory leak:
the menuitem(child) owns the parent("this")'s reference,
the parent(this) owns the menuitem's reference.
At last they both can not release.

we can not release the target's reference in the menuitem's deconstructor.
or there is no need to retain the target when initialize the menuitem with menu_selector.