P4 to Git Change 1117053 by weizhang@weizhang-lnx-opencl-tmp on 2015/01/30 14:40:55

EPR #410989 - Set globalScratchBuf_ to NULL after it is deleted.

	   The issue is that scratch buffer will be destroyed again when the transfer queue is destroyed.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#492 edit
This commit is contained in:
foreman
2015-01-30 15:10:24 -05:00
parent 84508bb5a4
commit 6ea7225039
+1
View File
@@ -430,6 +430,7 @@ Device::~Device()
}
delete globalScratchBuf_;
globalScratchBuf_ = NULL;
// Destroy transfer queue
delete xferQueue_;