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:
parent
170c61e409
commit
18c54a2978
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue