fixed memory leak in TabWidget

svn-id: r11191
This commit is contained in:
Max Horn 2003-11-07 14:50:32 +00:00
parent 496d19d461
commit 767fc87148
5 changed files with 15 additions and 8 deletions

View file

@ -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;
}