From: Dana Jansens Date: Sun, 2 Feb 2003 22:29:39 +0000 (+0000) Subject: delete the surface in destructor X-Git-Tag: openbox-2_3_0~59 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=aaf297a1367c1b2af4626f020c93ce82fb20ee69;p=dana%2Fopenbox.git delete the surface in destructor --- diff --git a/otk/widget.cc b/otk/widget.cc index 0675bf6a..c3e17cbe 100644 --- a/otk/widget.cc +++ b/otk/widget.cc @@ -59,6 +59,9 @@ Widget::~Widget() if (_visible) hide(); + if (_surface) + delete _surface; + _event_dispatcher->clearHandler(_window); std::for_each(_children.begin(), _children.end(), PointerAssassin());