fixed memory leak in TabWidget
svn-id: r11191
This commit is contained in:
parent
496d19d461
commit
767fc87148
5 changed files with 15 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue