intercepting queue delete fixed without the callback registered

Change-Id: If278c3fbd0feb91937981aee95039a243efaa130


[ROCm/rocprofiler commit: d08e240928]
This commit is contained in:
Evgeny
2018-12-20 09:41:36 -06:00
parent c3c9815c49
commit 5745d01e9c
@@ -110,7 +110,7 @@ class InterceptQueue {
static hsa_status_t QueueDestroy(hsa_queue_t* queue) {
std::lock_guard<mutex_t> lck(mutex_);
hsa_status_t status = HSA_STATUS_ERROR;
hsa_status_t status = HSA_STATUS_SUCCESS;
if (destroy_callback_ != NULL) {
status = destroy_callback_(queue, callback_data_);