diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 2f16f389..8b5ff9be 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -7160,6 +7160,7 @@ void View::DrawCompare() try { m_compare.second = std::make_unique( *f, EventType::None ); + m_compare.userData = std::make_unique( m_compare.second->GetCaptureProgram().c_str(), m_compare.second->GetCaptureTime() ); } catch( const tracy::UnsupportedVersion& e ) { @@ -7213,6 +7214,7 @@ void View::DrawCompare() { m_compare.Reset(); m_compare.second.reset(); + m_compare.userData.reset(); ImGui::End(); return; } diff --git a/server/TracyView.hpp b/server/TracyView.hpp index 09370d22..f6457039 100644 --- a/server/TracyView.hpp +++ b/server/TracyView.hpp @@ -455,6 +455,7 @@ private: bool ignoreCase = false; bool link = true; std::unique_ptr second; + std::unique_ptr userData; std::thread loadThread; int badVer = 0; char pattern[1024] = {};