浏览代码

glTF: Fix delete / delete[] mismatch

Turo Lamminen 7 年之前
父节点
当前提交
d308cfcb43
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      code/glTFAsset.inl

+ 1 - 1
code/glTFAsset.inl

@@ -297,7 +297,7 @@ inline void Buffer::Read(Value& obj, Asset& r)
         if (dataURI.base64) {
             uint8_t* data = 0;
             this->byteLength = Util::DecodeBase64(dataURI.data, dataURI.dataLength, data);
-            this->mData.reset(data);
+            this->mData.reset(data, std::default_delete<uint8_t[]>());
 
             if (statedLength > 0 && this->byteLength != statedLength) {
                 throw DeadlyImportError("GLTF: buffer \"" + id + "\", expected " + to_string(statedLength) +