fix: missing HandleScope
in RemoveFromParentChildWindows
(#46774)
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
d2134f84e1
commit
d605b97f9a
1 changed files with 3 additions and 1 deletions
|
@ -1153,8 +1153,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