#include #include #include using namespace geode::prelude; class $modify(CCMenuItem) { void activate() { this->retain(); CCMenuItem::activate(); this->release(); } }; class $modify(CCMenu) { void ccTouchEnded(CCTouch* touch, CCEvent* event) { this->retain(); CCMenu::ccTouchEnded(touch, event); this->release(); } };