Reset tag allocators in CSR destructor

Change-Id: I178ece2b5d79c2bd38b8ba5b1c715bd3730b715e
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk 2020-10-19 10:43:42 +02:00
parent 1eefd3743f
commit c2c2bc3f82
1 changed files with 4 additions and 0 deletions

View File

@ -65,6 +65,10 @@ CommandStreamReceiver::~CommandStreamReceiver() {
}
cleanupResources();
profilingTimeStampAllocator.reset();
perfCounterAllocator.reset();
timestampPacketAllocator.reset();
internalAllocationStorage->cleanAllocationList(-1, REUSABLE_ALLOCATION);
internalAllocationStorage->cleanAllocationList(-1, TEMPORARY_ALLOCATION);
getMemoryManager()->unregisterEngineForCsr(this);