delete the surface in destructor

This commit is contained in:
Dana Jansens 2003-02-02 22:29:39 +00:00
parent f1c0beee3e
commit aaf297a136

View file

@ -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());