NITFPRIV(void) destroyCircle(NITF_DATA* data) { if ( ((cgm_CircleElement*)data)->attributes) { cgm_FillAttributes_destruct( & ((cgm_CircleElement*)data)->attributes); } NITF_FREE( data ); }
NITFPRIV(void) rectangleDestroy(NITF_DATA* data) { cgm_RectangleElement* rect = (cgm_RectangleElement*)data; if (rect->attributes) { cgm_FillAttributes_destruct( &(rect->attributes) ); } if (rect->rectangle) { cgm_Rectangle_destruct( & (rect->rectangle) ); } NITF_FREE(data); }