Tracker: Don't create the TitleView and CountView for the desktop.

They aren't used, so this just leaked memory.
This commit is contained in:
Augustin Cavalier
2025-04-30 13:46:27 -04:00
parent 1df290c521
commit 79aac200ed
+2
View File
@@ -328,6 +328,7 @@ BPoseView::Init(const BMessage &message)
void
BPoseView::InitCommon()
{
if (!IsDesktopView()) {
// Create the TitleView and CountView
fTitleView = new BTitleView(this);
if (ViewMode() != kListMode)
@@ -336,6 +337,7 @@ BPoseView::InitCommon()
fHScrollBar->SetTitleView(fTitleView);
fCountView = new BCountView(this);
}
BPoint origin;
if (ViewMode() == kListMode)