Fix sampler lifecycle

- Add refcount to sampler to avoid use after free

Change-Id: I0f03d8ed29b5b9dc5bee355ed266ac7437e92509
This commit is contained in:
Woloszyn, Wojciech
2018-08-10 04:42:52 -07:00
committed by sys_ocldev
parent 1a85f83235
commit 53d99ead24
22 changed files with 216 additions and 38 deletions

View File

@ -70,8 +70,8 @@ class KernelSlmArgTest : public Test<DeviceFixture> {
}
void TearDown() override {
delete pKernelInfo;
delete pKernel;
delete pKernelInfo;
DeviceFixture::TearDown();
}