aboutsummaryrefslogtreecommitdiff
path: root/gui/widget.cpp
diff options
context:
space:
mode:
authorMax Horn2007-04-15 19:03:25 +0000
committerMax Horn2007-04-15 19:03:25 +0000
commitf8067d54e53084c9fd7ef848fd855967d0641465 (patch)
treedb39c44a61351a5875a2e6d5ef1f0d6c8d8d317b /gui/widget.cpp
parentaecd100f93cf0d475092acefe37bff8c5d55b881 (diff)
downloadscummvm-rg350-f8067d54e53084c9fd7ef848fd855967d0641465.tar.gz
scummvm-rg350-f8067d54e53084c9fd7ef848fd855967d0641465.tar.bz2
scummvm-rg350-f8067d54e53084c9fd7ef848fd855967d0641465.zip
Fixing some memory leaks in the GUI code
svn-id: r26515
Diffstat (limited to 'gui/widget.cpp')
-rw-r--r--gui/widget.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/gui/widget.cpp b/gui/widget.cpp
index a7bc7cc48b..dcf9156165 100644
--- a/gui/widget.cpp
+++ b/gui/widget.cpp
@@ -58,6 +58,7 @@ void Widget::resize(int x, int y, int w, int h) {
Widget::~Widget() {
delete _next;
+ _next = 0;
}
void Widget::draw() {