diff options
Diffstat (limited to 'gui/widget.cpp')
-rw-r--r-- | gui/widget.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gui/widget.cpp b/gui/widget.cpp index 41926de51f..f876006c96 100644 --- a/gui/widget.cpp +++ b/gui/widget.cpp @@ -33,6 +33,10 @@ Widget::Widget(GuiObject *boss, int x, int y, int w, int h) _boss->_firstWidget = this; } +Widget::~Widget() { + delete _next; +} + void Widget::draw() { NewGui *gui = &g_gui; |