From 6fc5bc53fa3fb4c4fd8f80a1b668faa618b1e0f7 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Fri, 1 Jul 2005 23:14:53 +0000 Subject: [PATCH] Fixed build. The 'nice' thing is that it worked on r5 (even with our app_server) as the function is present in the header (just not implemented in our libbe). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13395 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/ScrollBar.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/kits/interface/ScrollBar.cpp b/src/kits/interface/ScrollBar.cpp index 0ea26357d6..34fbe68928 100644 --- a/src/kits/interface/ScrollBar.cpp +++ b/src/kits/interface/ScrollBar.cpp @@ -253,11 +253,15 @@ BScrollBar::BScrollBar(BMessage *archive) BScrollBar::~BScrollBar() { + if (fTarget) { + if (Orientation() == B_VERTICAL) + fTarget->fVerScroller = NULL; + else + fTarget->fHorScroller = NULL; + } + delete fPrivateData; free(fTargetName); - - if (fTarget) - fTarget->UnsetScroller(this); }