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
+9 -7
View File
@@ -328,14 +328,16 @@ BPoseView::Init(const BMessage &message)
void
BPoseView::InitCommon()
{
// Create the TitleView and CountView
fTitleView = new BTitleView(this);
if (ViewMode() != kListMode)
fTitleView->Hide();
if (fHScrollBar != NULL)
fHScrollBar->SetTitleView(fTitleView);
if (!IsDesktopView()) {
// Create the TitleView and CountView
fTitleView = new BTitleView(this);
if (ViewMode() != kListMode)
fTitleView->Hide();
if (fHScrollBar != NULL)
fHScrollBar->SetTitleView(fTitleView);
fCountView = new BCountView(this);
fCountView = new BCountView(this);
}
BPoint origin;
if (ViewMode() == kListMode)