版本2.2.3
void Widget::removeFromParentAndCleanup(bool cleanup)
{
CCNodeRGBA::removeFromParentAndCleanup(cleanup);
}
addChild时会插入_widgetChildren,这里这样移除不就漏了?
CCNode通过addNode加入到Widget,移除时用removeFromParentAndCleanup或CCRemoveSelf都没处理Widget里的_nodes。