fix: dangling raw_ptr<views::View> in api::View (#42951)

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
trop[bot] 2024-07-17 23:31:40 -05:00 committed by GitHub
parent 1de0bb30b1
commit bb093817ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -178,7 +178,7 @@ View::~View() {
return;
view_->RemoveObserver(this);
if (delete_view_)
delete view_;
view_.ClearAndDelete();
}
void View::ReorderChildView(gin::Handle<View> child, size_t index) {