unregister for events when destroyed
This commit is contained in:
parent
1fa445c880
commit
22bd294c7b
1 changed files with 2 additions and 0 deletions
|
@ -55,6 +55,8 @@ OtkWidget::~OtkWidget()
|
|||
if (_visible)
|
||||
hide();
|
||||
|
||||
_event_dispatcher->clearHandler(_window);
|
||||
|
||||
std::for_each(_children.begin(), _children.end(), PointerAssassin());
|
||||
|
||||
if (_parent)
|
||||
|
|
Loading…
Reference in a new issue