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:
@@ -328,6 +328,7 @@ BPoseView::Init(const BMessage &message)
|
|||||||
void
|
void
|
||||||
BPoseView::InitCommon()
|
BPoseView::InitCommon()
|
||||||
{
|
{
|
||||||
|
if (!IsDesktopView()) {
|
||||||
// Create the TitleView and CountView
|
// Create the TitleView and CountView
|
||||||
fTitleView = new BTitleView(this);
|
fTitleView = new BTitleView(this);
|
||||||
if (ViewMode() != kListMode)
|
if (ViewMode() != kListMode)
|
||||||
@@ -336,6 +337,7 @@ BPoseView::InitCommon()
|
|||||||
fHScrollBar->SetTitleView(fTitleView);
|
fHScrollBar->SetTitleView(fTitleView);
|
||||||
|
|
||||||
fCountView = new BCountView(this);
|
fCountView = new BCountView(this);
|
||||||
|
}
|
||||||
|
|
||||||
BPoint origin;
|
BPoint origin;
|
||||||
if (ViewMode() == kListMode)
|
if (ViewMode() == kListMode)
|
||||||
|
|||||||
Reference in New Issue
Block a user