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

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:25:25 -05:00 committed by GitHub
parent 170c61e409
commit 18c54a2978
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) {