Command Queue: Destroy timestamp packet container before releasing context

Change-Id: I7ee492586ee178bc89c44d5d6663d3ff8fb2e778
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2018-12-13 16:24:42 +01:00
committed by sys_ocldev
parent 1439f49845
commit 74510286a1
3 changed files with 22 additions and 1 deletions

View File

@ -96,6 +96,7 @@ CommandQueue::~CommandQueue() {
}
}
timestampPacketContainer.reset();
//for normal queue, decrement ref count on context
//special queue is owned by context so ref count doesn't have to be decremented
if (context && !isSpecialCommandQueue) {