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


[ROCm/clr commit: 6ea7225039]
Este commit está contenido en:
foreman
2015-01-30 15:10:24 -05:00
padre 2a4aa5e11f
commit 9adec1f8bb
@@ -430,6 +430,7 @@ Device::~Device()
}
delete globalScratchBuf_;
globalScratchBuf_ = NULL;
// Destroy transfer queue
delete xferQueue_;