diff --git a/server/TracyUserData.cpp b/server/TracyUserData.cpp index e62fdba9..4cbb6c43 100644 --- a/server/TracyUserData.cpp +++ b/server/TracyUserData.cpp @@ -40,7 +40,7 @@ UserData::UserData( const char* program, uint64_t time ) fseek( f, 0, SEEK_END ); const auto sz = ftell( f ); fseek( f, 0, SEEK_SET ); - auto buf = std::make_unique( sz ); + auto buf = std::unique_ptr(new char[sz]); fread( buf.get(), 1, sz, f ); fclose( f ); m_description.assign( buf.get(), buf.get() + sz ); diff --git a/server/TracyView_ZoneInfo.cpp b/server/TracyView_ZoneInfo.cpp index a7392e9f..df147f68 100644 --- a/server/TracyView_ZoneInfo.cpp +++ b/server/TracyView_ZoneInfo.cpp @@ -1239,8 +1239,8 @@ void View::DrawZoneInfoChildren( const V& children, int64_t ztime ) ImGui::NextColumn(); if( expandGroup ) { - auto ctt = std::make_unique( cgr.v.size() ); - auto cti = std::make_unique( cgr.v.size() ); + auto ctt = std::unique_ptr( new uint64_t[cgr.v.size()] ); + auto cti = std::unique_ptr( new uint32_t[cgr.v.size()] ); for( size_t i=0; i( children.size() ); - auto cti = std::make_unique( children.size() ); + auto ctt = std::unique_ptr( new uint64_t[children.size()] ); + auto cti = std::unique_ptr( new uint32_t[children.size()] ); uint64_t ctime = 0; for( size_t i=0; i( cgr.v.size() ); - auto cti = std::make_unique( cgr.v.size() ); + auto ctt = std::unique_ptr( new uint64_t[cgr.v.size()] ); + auto cti = std::unique_ptr( new uint32_t[cgr.v.size()] ); for( size_t i=0; i( children.size() ); - auto cti = std::make_unique( children.size() ); + auto ctt = std::unique_ptr( new uint64_t[children.size()] ); + auto cti = std::unique_ptr( new uint32_t[children.size()] ); uint64_t ctime = 0; for( size_t i=0; i( LZ4Size ); + auto lz4buf = std::unique_ptr( new char[LZ4Size] ); for(;;) {