mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
fix: Set control block in buffer object handle wrapper to null after deletion
Related-To: HSD-18039543925 Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
a9cb7876a5
commit
0258667a6e
@@ -65,6 +65,7 @@ BufferObjectHandleWrapper::~BufferObjectHandleWrapper() {
|
||||
if (controlBlock->refCount == 0 && controlBlock->weakRefCount == 0) {
|
||||
lock.unlock();
|
||||
delete controlBlock;
|
||||
controlBlock = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ class BufferObjectHandleWrapper {
|
||||
|
||||
int boHandle{};
|
||||
Ownership ownership{Ownership::strong};
|
||||
ControlBlock *controlBlock{};
|
||||
ControlBlock *controlBlock{nullptr};
|
||||
};
|
||||
|
||||
class BufferObject {
|
||||
|
||||
Reference in New Issue
Block a user