From ce2813cb1f4988669422c6af3e8c4442776e45c8 Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Thu, 20 Oct 2005 11:33:17 +0000 Subject: Added garbage collection to the ScrollArea class. Fixed slider not being updated in the item amount box when the buttons are used. --- src/gui/help.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/gui/help.cpp') diff --git a/src/gui/help.cpp b/src/gui/help.cpp index 45ed7ba4..eb30556a 100644 --- a/src/gui/help.cpp +++ b/src/gui/help.cpp @@ -41,7 +41,7 @@ HelpWindow::HelpWindow(): browserBox = new BrowserBox(); browserBox->setOpaque(false); scrollArea = new ScrollArea(browserBox); - okButton = new Button("Close"); + Button *okButton = new Button("Close"); scrollArea->setDimension(gcn::Rectangle( 5, 5, 445, 335 - okButton->getHeight())); @@ -60,11 +60,6 @@ HelpWindow::HelpWindow(): setLocationRelativeTo(getParent()); } -HelpWindow::~HelpWindow() -{ - delete browserBox; -} - void HelpWindow::action(const std::string& eventId) { if (eventId == "close") -- cgit v1.2.3-70-g09d2