/**
    \fn cleanup
    \brief deallocate
*/
uint8_t ADM_flyDialog::cleanup(void)
{
#define DEL1(x)    if(x) {delete [] x;x=NULL;}
#define DEL2(x)    if(x) {delete  x;x=NULL;}
	DEL2(_yuvBuffer);
	_rgbByteBufferDisplay.clean();
        DEL2(action);

	return 1;
}
RMeshNodeData::~RMeshNodeData() 
{
	if(m_point_num) {
		DEL2(m_point_list);
//		DEL2(m_point_normal_list);
	}

	if( m_point_color_num ) {
		DEL2(m_point_color_list);
	}

	if(m_face_num) {
		DEL2(m_face_list);
		DEL2(m_face_normal_list);
	}

	if(m_physique_num){
		DEL2(m_physique);
	}
}
RMeshNodeMtrl::~RMeshNodeMtrl()
{
	if(m_pMtrlTable)
		DEL2(m_pMtrlTable);
}