mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-28 16:29:34 +08:00
Main (#303)
* Refresh cursor reporting on resize. * Fix invalid size write. This resolves: https://github.com/ArthurSonzogni/FTXUI/issues/302
This commit is contained in:
@@ -64,8 +64,9 @@ void ComponentBase::Detach() {
|
||||
[this](const Component& that) { //
|
||||
return this == that.get();
|
||||
});
|
||||
parent_->children_.erase(it);
|
||||
ComponentBase* parent = parent_;
|
||||
parent_ = nullptr;
|
||||
parent->children_.erase(it); // Might delete |this|.
|
||||
}
|
||||
|
||||
/// @brief Remove all children.
|
||||
|
Reference in New Issue
Block a user