diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 6e0cb91d..551f2f1d 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -11818,9 +11818,16 @@ void View::DrawMemory() ImGui::SameLine(); TextFocused( "Memory usage:", MemSizeToString( total ) ); - ListMemData( items.begin(), items.end(), []( auto& v ) { - ImGui::Text( "0x%" PRIx64, (*v)->ptr ); - }, "##activeMem" ); + if( !items.empty() ) + { + ListMemData( items.begin(), items.end(), []( auto& v ) { + ImGui::Text( "0x%" PRIx64, (*v)->ptr ); + }, "##activeMem" ); + } + else + { + TextDisabledUnformatted( "No active allocations" ); + } ImGui::TreePop(); }