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

This commit is contained in:
Charles Kerr 2024-07-17 21:31:48 -05:00 committed by GitHub
parent ce45450c28
commit bc345db351
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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