mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 17:13:29 +08:00
Fix sampler lifecycle
- Add refcount to sampler to avoid use after free Change-Id: I0f03d8ed29b5b9dc5bee355ed266ac7437e92509
This commit is contained in:
committed by
sys_ocldev
parent
1a85f83235
commit
53d99ead24
@@ -79,8 +79,8 @@ class KernelArgPipeFixture : public ContextFixture, public DeviceFixture {
|
||||
}
|
||||
|
||||
void TearDown() override {
|
||||
delete pKernelInfo;
|
||||
delete pKernel;
|
||||
delete pKernelInfo;
|
||||
delete pProgram;
|
||||
ContextFixture::TearDown();
|
||||
DeviceFixture::TearDown();
|
||||
|
||||
Reference in New Issue
Block a user