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:
parent
1de0bb30b1
commit
bb093817ed
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…
Add table
Reference in a new issue