diff --git a/code/glTFAsset.inl b/code/glTFAsset.inl index a5d74f5a0..ee4f93e2f 100644 --- a/code/glTFAsset.inl +++ b/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()); if (statedLength > 0 && this->byteLength != statedLength) { throw DeadlyImportError("GLTF: buffer \"" + id + "\", expected " + to_string(statedLength) +