mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Valgrind delete fix
This commit is contained in:
parent
d034dbc991
commit
1dc6c903ee
1 changed files with 2 additions and 2 deletions
|
@ -137,13 +137,13 @@ struct BfVariant
|
|||
~BfVariant()
|
||||
{
|
||||
if (mTypeCode == BfTypeCode_Struct)
|
||||
delete (uint8*)mPtr;
|
||||
delete [] (uint8*)mPtr;
|
||||
}
|
||||
|
||||
BfVariant& operator=(const BfVariant& variant)
|
||||
{
|
||||
if (mTypeCode == BfTypeCode_Struct)
|
||||
delete (uint8*)mPtr;
|
||||
delete [] (uint8*)mPtr;
|
||||
mTypeCode = variant.mTypeCode;
|
||||
mWarnType = variant.mWarnType;
|
||||
mUInt64 = variant.mUInt64;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue