objc中 dealoc()用c++中析构函数

-(void)dealloc

{

[superdealloc];

}

写作

RenderTextureTest::~RenderTextureTest()

{

if (NULL != m_brush)

{

m_brush->release();

m_brush = NULL;

}

}