unregister for events when destroyed

This commit is contained in:
Dana Jansens 2002-12-04 01:02:56 +00:00
parent 1fa445c880
commit 22bd294c7b

View file

@ -55,6 +55,8 @@ OtkWidget::~OtkWidget()
if (_visible)
hide();
_event_dispatcher->clearHandler(_window);
std::for_each(_children.begin(), _children.end(), PointerAssassin());
if (_parent)