From c2c2bc3f827313860e938209539e96a6d1d9f491 Mon Sep 17 00:00:00 2001 From: Lukasz Jobczyk Date: Mon, 19 Oct 2020 10:43:42 +0200 Subject: [PATCH] Reset tag allocators in CSR destructor Change-Id: I178ece2b5d79c2bd38b8ba5b1c715bd3730b715e Signed-off-by: Lukasz Jobczyk --- shared/source/command_stream/command_stream_receiver.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shared/source/command_stream/command_stream_receiver.cpp b/shared/source/command_stream/command_stream_receiver.cpp index 3dccd7199f..01832b16c1 100644 --- a/shared/source/command_stream/command_stream_receiver.cpp +++ b/shared/source/command_stream/command_stream_receiver.cpp @@ -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);