From: Turo Lamminen Date: Tue, 12 Sep 2017 16:00:44 +0000 (+0300) Subject: Fix delete / delete[] mismatch in glTFAsset X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5ecab20bd00692afff327875d360c94aec6b6016;p=platform%2Fupstream%2Fassimp.git Fix delete / delete[] mismatch in glTFAsset --- diff --git a/code/glTFAsset.inl b/code/glTFAsset.inl index 9284ccb..61afebf 100644 --- a/code/glTFAsset.inl +++ b/code/glTFAsset.inl @@ -341,7 +341,7 @@ inline bool Buffer::LoadFromStream(IOStream& stream, size_t length, size_t baseO stream.Seek(baseOffset, aiOrigin_SET); } - mData.reset(new uint8_t[byteLength]); + mData.reset(new uint8_t[byteLength], std::default_delete()); if (stream.Read(mData.get(), byteLength, 1) != 1) { return false;