P4 to Git Change 1247486 by weizhang@weizhang-lnx-opencl on 2016/03/15 11:01:21
SWDEV-89454 - The memory pointed by m_nativeDisplayHandle should be freed at IOL.
The memory pointed by m_nativeDisplayHandle is allocated in IOL, so it should be freed at IOL as well. Otherwise, the error of "double free or corruption" happens.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp#162 edit
[ROCm/clr commit: c33a49c7f6]
Αυτή η υποβολή περιλαμβάνεται σε:
@@ -56,16 +56,6 @@ CALGSLDevice::~CALGSLDevice()
|
||||
assert(m_adp == 0); /// CALBE client must call close explicitly. Check that here
|
||||
|
||||
delete gslDeviceOps_;
|
||||
|
||||
switch(m_deviceMode)
|
||||
{
|
||||
case GSL_DEVICE_MODE_NONE:
|
||||
case GSL_DEVICE_MODE_CONSOLE:
|
||||
delete static_cast<char*>(m_nativeDisplayHandle);
|
||||
break;
|
||||
case GSL_DEVICE_MODE_GFX:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Αναφορά σε νέο ζήτημα
Block a user