fix: missing HandleScope
in RemoveFromParentChildWindows
(#46758)
This commit is contained in:
parent
51dbe69e45
commit
1976e935e7
1 changed files with 3 additions and 1 deletions
|
@ -1161,8 +1161,10 @@ void BaseWindow::RemoveFromParentChildWindows() {
|
|||
if (parent_window_.IsEmpty())
|
||||
return;
|
||||
|
||||
v8::Isolate* isolate = JavascriptEnvironment::GetIsolate();
|
||||
v8::HandleScope handle_scope(isolate);
|
||||
gin::Handle<BaseWindow> parent;
|
||||
if (!gin::ConvertFromV8(isolate(), GetParentWindow(), &parent) ||
|
||||
if (!gin::ConvertFromV8(isolate, GetParentWindow(), &parent) ||
|
||||
parent.IsEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue