Fix a bug : buttons doesn't disappear on KillMe

This commit is contained in:
Grégory Soutadé 2012-04-26 20:59:01 +02:00
parent 28bb4c49f0
commit 993e6b1759

View File

@ -326,8 +326,9 @@ void wxUI::KillMe()
{
if (*it)
{
_buttonsBox->removeWidget(*it);
_buttonsBox->removeWidget(*_buttons.begin());
delete *it;
delete *_buttons.begin();
}
_buttons.erase(_buttons.begin());
}