fix: missing HandleScope
in RemoveFromParentChildWindows
(#46773)
fix: missing HandleScope in RemoveFromParentChildWindows Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
parent
5a4ef1cc33
commit
08a4c333a3
1 changed files with 3 additions and 1 deletions
|
@ -1163,8 +1163,10 @@ void BaseWindow::RemoveFromParentChildWindows() {
|
||||||
if (parent_window_.IsEmpty())
|
if (parent_window_.IsEmpty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
v8::Isolate* isolate = JavascriptEnvironment::GetIsolate();
|
||||||
|
v8::HandleScope handle_scope(isolate);
|
||||||
gin::Handle<BaseWindow> parent;
|
gin::Handle<BaseWindow> parent;
|
||||||
if (!gin::ConvertFromV8(isolate(), GetParentWindow(), &parent) ||
|
if (!gin::ConvertFromV8(isolate, GetParentWindow(), &parent) ||
|
||||||
parent.IsEmpty()) {
|
parent.IsEmpty()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue