From 1479219b04017237202f26a2a40caad87c76df4a Mon Sep 17 00:00:00 2001 From: Reece Date: Fri, 18 Feb 2022 09:17:58 +0000 Subject: [PATCH] [*] Fix: new compression subsystem objects weren't being allocated with nothrow --- Source/Compression/BlockCompressor.cpp | 6 +++--- Source/Compression/BlockDecompressor.cpp | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Source/Compression/BlockCompressor.cpp b/Source/Compression/BlockCompressor.cpp index ad2915e7..6fc21f32 100644 --- a/Source/Compression/BlockCompressor.cpp +++ b/Source/Compression/BlockCompressor.cpp @@ -38,11 +38,11 @@ namespace Aurora::Compression { #if defined(_AUHAS_ZSTD) case ECompresionType::eZSTD: - ret = new ZSTDDeflate(info); + ret = _new ZSTDDeflate(info); break; #endif case ECompresionType::eBZIP2: - ret = new BZIPDeflate(info); + ret = _new BZIPDeflate(info); break; #if defined(_AUHAS_LZ4) case ECompresionType::eLZ4: @@ -59,7 +59,7 @@ namespace Aurora::Compression return {}; } - ret = new ZIPDeflate(info, bits); + ret = _new ZIPDeflate(info, bits); break; #endif default: diff --git a/Source/Compression/BlockDecompressor.cpp b/Source/Compression/BlockDecompressor.cpp index ba10ac8a..7b2ff5c6 100644 --- a/Source/Compression/BlockDecompressor.cpp +++ b/Source/Compression/BlockDecompressor.cpp @@ -38,15 +38,15 @@ namespace Aurora::Compression { #if defined(_AUHAS_ZSTD) case ECompresionType::eZSTD: - ret = new ZSTDInflate(info); + ret = _new ZSTDInflate(info); break; #endif case ECompresionType::eBZIP2: - ret = new BZIPInflate(info); + ret = _new BZIPInflate(info); break; #if defined(_AUHAS_LZ4) case ECompresionType::eLZ4: - ret = new LZ4Inflate(info); + ret = _new LZ4Inflate(info); break; #endif #if defined(_AUHAS_ZLIB) @@ -59,7 +59,7 @@ namespace Aurora::Compression return {}; } - ret = new ZIPInflate(info, bits); + ret = _new ZIPInflate(info, bits); break; #endif default: