Free the right widget in removeChild() (we've to free "child" instead of "this")

This commit is contained in:
David Capello 2014-04-13 22:17:00 -03:00
parent 39e6f2dbe6
commit b00a187fba

View File

@ -480,7 +480,7 @@ void Widget::removeChild(Widget* child)
// Free from manager
Manager* manager = getManager();
if (manager)
manager->freeWidget(this);
manager->freeWidget(child);
child->m_parent = NULL;
}