fix: dangling raw_ptr<views::View> in api::View (#42929)
This commit is contained in:
parent
ce45450c28
commit
bc345db351
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ View::~View() {
|
||||||
return;
|
return;
|
||||||
view_->RemoveObserver(this);
|
view_->RemoveObserver(this);
|
||||||
if (delete_view_)
|
if (delete_view_)
|
||||||
delete view_;
|
view_.ClearAndDelete();
|
||||||
}
|
}
|
||||||
|
|
||||||
void View::ReorderChildView(gin::Handle<View> child, size_t index) {
|
void View::ReorderChildView(gin::Handle<View> child, size_t index) {
|
||||||
|
|
Loading…
Reference in a new issue