m_AlignedHeap.free( pDesc );
}
}
- pProcHeap->~processor_heap();
}
/// Frees processor descriptor
for ( processor_heap * pProcHeap = pDesc->arrProcHeap; pProcHeap < pProcHeapEnd; ++pProcHeap ) {
if ( pProcHeap->nPageIdx != processor_heap::c_nPageSelfAllocation )
free_processor_heap( pProcHeap );
+
+ pProcHeap->~processor_heap();
}
}
for (size_t i = 0; i < nPageHeapCount; ++i )
(pDesc->pageHeaps + i)->page_heap::~page_heap();
- //m_IntHeap.free( pDesc->pageHeaps );
pDesc->pageHeaps = nullptr;
pDesc->processor_desc::~processor_desc();
pDesc->pProcHeap->stat.incBlockDeallocated();
processor_desc * pProcDesc = pDesc->pProcHeap->pProcDesc;
if ( pDesc->pSB ) {
- if ( pDesc->pProcHeap->nPageIdx == processor_heap::c_nPageSelfAllocation ) {
+ if ( pDesc->pProcHeap->nPageIdx == processor_heap::c_nPageSelfAllocation )
free( pDesc->pSB );
- }
- else {
+ else
pProcDesc->pageHeaps[pDesc->pProcHeap->nPageIdx].free( pDesc->pSB );
- }
}
pProcDesc->listSBDescFree.push( pDesc );
}