fix: missing HandleScope in RemoveFromParentChildWindows (#46758)

This commit is contained in:
Shelley Vohr 2025-04-25 14:04:25 +02:00 committed by GitHub
parent 51dbe69e45
commit 1976e935e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}