BView: Move tooltip release and fix small coding style issues.
This is only an optical change.
This commit is contained in:
@@ -704,9 +704,6 @@ BView::~BView()
|
|||||||
"Call RemoveSelf first.");
|
"Call RemoveSelf first.");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fToolTip != NULL)
|
|
||||||
fToolTip->ReleaseReference();
|
|
||||||
|
|
||||||
// we also delete all our children
|
// we also delete all our children
|
||||||
|
|
||||||
BView* child = fFirstChild;
|
BView* child = fFirstChild;
|
||||||
@@ -724,9 +721,12 @@ BView::~BView()
|
|||||||
|
|
||||||
_RemoveSelf();
|
_RemoveSelf();
|
||||||
|
|
||||||
if (fVerScroller)
|
if (fToolTip != NULL)
|
||||||
|
fToolTip->ReleaseReference();
|
||||||
|
|
||||||
|
if (fVerScroller != NULL)
|
||||||
fVerScroller->SetTarget((BView*)NULL);
|
fVerScroller->SetTarget((BView*)NULL);
|
||||||
if (fHorScroller)
|
if (fHorScroller != NULL)
|
||||||
fHorScroller->SetTarget((BView*)NULL);
|
fHorScroller->SetTarget((BView*)NULL);
|
||||||
|
|
||||||
SetName(NULL);
|
SetName(NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user