mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-14 13:21:34 +00:00
Free the right widget in removeChild() (we've to free "child" instead of "this")
This commit is contained in:
parent
39e6f2dbe6
commit
b00a187fba
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user