/* * The ebscClass class destructor (EBSC table) */ void Delete_ebscClass( ebscClass *t ) { if ( t != NULL ) { tsi_DeAllocMem( t->mem, t->table ); tsi_DeAllocMem( t->mem, t ); } }
void Delete_cvtClass( cvtClass *t ) { if ( t != NULL ) { tsi_DeAllocMem( t->mem, t->varFWords ); tsi_DeAllocMem( t->mem, t ); } }
void Delete_prepClass( prepClass *t ) { if ( t != NULL ) { tsi_DeAllocMem( t->mem, t->instructions ); tsi_DeAllocMem( t->mem, t ); } }
/* * The blocClass class destructor (EBLC/bloc table) */ void Delete_blocClass( blocClass *t ) { register int i; if ( t != NULL ) { for ( i = 0; i < (int)t->nTables; i++ ) { Delete_bitmapSizeTable( t->table[i] ); } tsi_DeAllocMem( t->mem, t->table ); tsi_DeAllocMem( t->mem, t->gInfo.baseAddr ); tsi_DeAllocMem( t->mem, t ); } }
void Delete_InputStream( InputStream *t, int *errCode ) { if ( t != NULL ) { if ( errCode == NULL || (*errCode = setjmp( t->mem->env)) == 0 ) { /* try */ if ( t->constructorType == 1 ) { tsi_DeAllocMem( t->mem, t->privateBase ); } tsi_DeAllocMem( t->mem, t ); } else { /* catch */ tsi_EmergencyShutDown( t->mem ); } } }
/* When the contour allocation is no longer needed, it can be released.*/ void ReleaseContourData(tsiMemObject *mem, ContourData *cd) { if(cd->initializedContour) if ( cd->ContourDataArray) { tsi_DeAllocMem( mem, (void *) cd->ContourDataArray ); cd->ContourDataArray =0; } }
void FF_CM_Delete(FF_CM_Class *theCache, int *errCode) { tsiMemObject *tempmem = theCache->mem; *errCode = 0; #ifdef PALM MemHandleFree(memH); #else tsi_DeAllocMem( theCache->mem, (void *)theCache); #endif tsi_DeleteMemhandler( tempmem); }
/* * The Destructor. */ void Delete_OrionModelClass( OrionModelClass *t ) { if ( t != NULL ) { int i; for ( i = 0; i < t->num_e; i++ ) { Delete_SCODER( t->literal[i] ); } for ( i = 0; i < t->num_eb1; i++ ) { Delete_SCODER( t->copy[i] ); } tsi_DeAllocMem( t->mem, t->literal ); tsi_DeAllocMem( t->mem, t->copy ); Delete_SCODER( t->control ); Delete_SCODER( t->ep ); tsi_DeAllocMem( t->mem, t->dx ); tsi_DeAllocMem( t->mem, t->dy ); tsi_DeAllocMem( t->mem, t->onCurve ); tsi_DeAllocMem( t->mem, t ); } }
/* * The bitmapSizeTable class destructor */ static void Delete_bitmapSizeTable( bitmapSizeTableT2K *t ) { tsi_DeAllocMem( t->mem, t->table ); tsi_DeAllocMem( t->mem, t ); }
/* * Deletes a PathClass. */ static void Delete_PathClass( PathClass *t ) { tsi_DeAllocMem( t->mem, t->xyLeft ); tsi_DeAllocMem( t->mem, t->xyRight ); tsi_DeAllocMem( t->mem, t ); }