aboutsummaryrefslogtreecommitdiff
path: root/gui/dialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/dialog.cpp')
-rw-r--r--gui/dialog.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/gui/dialog.cpp b/gui/dialog.cpp
index 2cd6848d0b..f5d2c22250 100644
--- a/gui/dialog.cpp
+++ b/gui/dialog.cpp
@@ -35,13 +35,7 @@
*/
Dialog::~Dialog() {
- Widget *w = _firstWidget, *next;
- while (w) {
- next = w->_next;
- w->_next = 0;
- delete w;
- w = next;
- }
+ delete _firstWidget;
_firstWidget = 0;
}