mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-23 03:33:13 +08:00
Add reference on kernel in blocked scenarios.
- Prevents kernel destruction while it may still be in use. Change-Id: I1f87d09c5cabf29644a1b06b63f1789dbb15985a
This commit is contained in:
@@ -212,8 +212,8 @@ class MockKernelWithInternals {
|
||||
mockKernel->setSshLocal(&sshLocal, sizeof(sshLocal));
|
||||
}
|
||||
~MockKernelWithInternals() {
|
||||
delete mockKernel;
|
||||
delete mockProgram;
|
||||
mockKernel->decRefInternal();
|
||||
mockProgram->decRefInternal();
|
||||
}
|
||||
|
||||
operator MockKernel *() {
|
||||
|
||||
Reference in New Issue
Block a user