diff --git a/server/TracyView.cpp b/server/TracyView.cpp index e7aa9c57..8e1aada3 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -5150,8 +5150,8 @@ void View::DrawCallstackWindow() void View::DrawMemoryAllocWindow() { - bool close; - ImGui::Begin( "Memory allocation", &close ); + bool show = true; + ImGui::Begin( "Memory allocation", &show ); const auto& mem = m_worker.GetMemData(); const auto& ev = mem.data[m_memoryAllocInfoWindow]; @@ -5253,7 +5253,7 @@ void View::DrawMemoryAllocWindow() } ImGui::End(); - if( !close ) m_memoryAllocInfoWindow = std::numeric_limits::max(); + if( !show ) m_memoryAllocInfoWindow = std::numeric_limits::max(); } template