static UIBotton* createButtonSpritesGather(const char* fileName_nor,const char* fileName_ovr,const char* fileName_dwn,int lengh);
UIBotton* UIBotton::createButtonSpritesGather( const char* fileName_nor,const char* fileName_ovr,const char* fileName_dwn,int lengh)
{
UIBotton* button = new UIBotton();
//button->m_touchPriority = tPriority;
button->btn_type =1;
if (button && button->initWithFilesGather(fileName_nor,fileName_ovr,fileName_dwn,lengh)) {
button->autorelease();
return button;
}
CC_SAFE_DELETE(button); return button;
}
```
这是我自己封装的按钮类 继承了Sprite
请问 是否需要在析构中 release
如果不 通过createButtonSpritesGather 创建的按钮是否会产生内存问题呢?
:2::2::2:
不用

嗯 多谢 

