From b00a187fba6043480fb01b687a30a5bafab9fe93 Mon Sep 17 00:00:00 2001 From: David Capello Date: Sun, 13 Apr 2014 22:17:00 -0300 Subject: [PATCH] Free the right widget in removeChild() (we've to free "child" instead of "this") --- src/ui/widget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }