model_server/gala/src/controlObjects.cxx
//---------------------------------------------------------------------------------------------------------
// removes all previously selected images and image name table.
//---------------------------------------------------------------------------------------------------------
removes all previously selected images and image name table.
removes all previously selected images and image name table .
imageBuffer::~imageBuffer(void) {
		register i;
		for(i=0;i<m_bufSize;i++) {
			if(m_Buffer[i]!=NULL) {
				if(m_Buffer[i]->m_Image!=NULL) delete m_Buffer[i]->m_Image;
				if(m_Buffer[i]->m_Name!=NULL)  delete m_Buffer[i]->m_Name;
				delete m_Buffer[i];
				m_Buffer[i]=NULL;
			}
		}
		delete [] m_Buffer;
	}
imageBuffer :: ~ imageBuffer ( void ) { register i ; for ( i = 0 ; i < m_bufSize ; i ++ ) { if ( m_Buffer [ i ] != NULL ) { if ( m_Buffer [ i ] -> m_Image != NULL ) delete m_Buffer [ i ] -> m_Image ; if ( m_Buffer [ i ] -> m_Name != NULL ) delete m_Buffer [ i ] -> m_Name ; delete m_Buffer [ i ] ; m_Buffer [ i ] = NULL ; } } delete [ ] m_Buffer ; }
removes all previously selected images and image name table.
removes all previously selected images and image name table .