From 514acf1bac42dc82c2b24c2aa3b86f94b89f419b Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 26 Mar 2021 00:21:19 +0100 Subject: [PATCH] Don't copy stats. --- server/TracyView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 7adccab2..8d3b03c7 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -15289,7 +15289,7 @@ void View::DrawAnnotationList() void View::DrawSampleParents() { const auto symbol = m_worker.GetSymbolData( m_sampleParents.symAddr ); - const auto stats = *m_worker.GetSymbolStats( m_sampleParents.symAddr ); + const auto& stats = *m_worker.GetSymbolStats( m_sampleParents.symAddr ); assert( !stats.parents.empty() ); bool show = true;