diff --git a/src/ui/widget.cpp b/src/ui/widget.cpp index 3b23e2106..2b4b7e894 100644 --- a/src/ui/widget.cpp +++ b/src/ui/widget.cpp @@ -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; }