objc中 dealoc()用c++中析构函数
如
-(void)dealloc
{
[super dealloc];
}
写作
RenderTextureTest::~RenderTextureTest()
if (NULL != m_brush)
m_brush->release();
m_brush = NULL;