mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 01:04:11 +02:00
Delete char* items properly
This commit is contained in:
parent
e768852645
commit
76d6c6cac5
1 changed files with 2 additions and 2 deletions
|
@ -1024,7 +1024,7 @@ int Octree::encodeTreeBitstream(OctreeElement* element,
|
|||
roomForOctalCode = packetData->startSubTree(newCode);
|
||||
|
||||
if (newCode) {
|
||||
delete newCode;
|
||||
delete[] newCode;
|
||||
codeLength = numberOfThreeBitSectionsInCode(newCode);
|
||||
} else {
|
||||
codeLength = 1;
|
||||
|
@ -2064,7 +2064,7 @@ bool Octree::readJSONFromStream(unsigned long streamLength, QDataStream& inputSt
|
|||
QVariant asVariant = asDocument.toVariant();
|
||||
QVariantMap asMap = asVariant.toMap();
|
||||
readFromMap(asMap);
|
||||
delete rawData;
|
||||
delete[] rawData;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue