diff options
Diffstat (limited to 'kdict/toplevel.cpp')
-rw-r--r-- | kdict/toplevel.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kdict/toplevel.cpp b/kdict/toplevel.cpp index 3ab47b05..46e4f02a 100644 --- a/kdict/toplevel.cpp +++ b/kdict/toplevel.cpp @@ -114,6 +114,12 @@ TopLevel::TopLevel(TQWidget* parent, const char* name) TopLevel::~TopLevel() { + if (splitter) + delete splitter; + if (interface) + delete interface; + if (global) + delete global; } @@ -636,6 +642,7 @@ void TopLevel::toggleMatchListShow() matchView->reparent(this,0,matchView->pos(),true); matchView->hide(); delete splitter; + splitter=NULL; setCentralWidget(queryView); } else // list is not visible -> show it |