mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-07 19:06:39 +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…
Reference in New Issue
Block a user