diff --git a/libcef_dll/wrapper/cef_zip_archive.cc b/libcef_dll/wrapper/cef_zip_archive.cc index f87446629..b892f2d3d 100644 --- a/libcef_dll/wrapper/cef_zip_archive.cc +++ b/libcef_dll/wrapper/cef_zip_archive.cc @@ -33,7 +33,7 @@ class CefZipFile : public CefZipArchive::File { CefZipFile& operator=(const CefZipFile&) = delete; bool Initialize(size_t data_size) { - data_.reset(new unsigned char[data_size]); + data_.reset(new (std::nothrow) unsigned char[data_size]); if (data_) { data_size_ = data_size; return true;