src/pix1.c
l_int32
pixFreeData(PIX  *pix)
{
l_uint32  *data;

    PROCNAME("pixFreeData");

    if (!pix)
        return ERROR_INT("pix not defined", procName, 1);

    if ((data = pixGetData(pix)) != NULL) {
        pix_free(data);
        pix->data = NULL;
    }
    return 0;
}
/*!
 *  pixFreeData()
 *
 *  Notes:
 *      (1) This frees the data and sets the pix data ptr to null.
 *          It should be used before pixSetData() in the situation where
 *          you want to free any existing data before doing
 *          a subsequent assignment with pixSetData().
 */
pixFreeData()
Notes:
(1) This frees the data and sets the pix data ptr to null.
It should be used before pixSetData() in the situation where
you want to free any existing data before doing
a subsequent assignment with pixSetData().
pixFreeData () Notes : ( 1 ) This frees the data and sets the pix data ptr to null . It should be used before pixSetData () in the situation where you want to free any existing data before doing a subsequent assignment with pixSetData () .
l_int32
pixFreeData(PIX  *pix)
{
l_uint32  *data;
    PROCNAME("pixFreeData");
    if (!pix)
        return ERROR_INT("pix not defined", procName, 1);
    if ((data = pixGetData(pix)) != NULL) {
        pix_free(data);
        pix->data = NULL;
    }
    return 0;
}
l_int32 pixFreeData ( PIX * pix ) { l_uint32 * data ; PROCNAME ( " " ) ; if ( ! pix ) return ERROR_INT ( " " , procName , 1 ) ; if ( ( data = pixGetData ( pix ) ) != NULL ) { pix_free ( data ) ; pix -> data = NULL ; } return 0 ; }
pixFreeData()
  Notes:
      (1) This frees the data and sets the pix data ptr to null.
pixFreeData () Notes : ( 1 ) This frees the data and sets the pix data ptr to null .