Example #1
0
NITFAPI(void) cgm_LineAttributes_destruct(cgm_LineAttributes** atts)
{
    if (*atts)
    {
        if ((*atts)->lineColor)
        {
            cgm_Color_destruct(&((*atts)->lineColor));
        }
        NITF_FREE( *atts );
        *atts = NULL;
    }
}
Example #2
0
NITFAPI(void) cgm_PictureBody_destruct(cgm_PictureBody** body)
{
    if (*body)
    {
        if ( (*body)->elements )
        {
            nitf_List_destruct( & (*body)->elements );
        }
        if ( (*body)->auxColor )
        {
            cgm_Color_destruct(&((*body)->auxColor));
        }
        NITF_FREE( *body );
        *body = NULL;
    }
}