fix: add missing handle scope in file_dialog_gtk (#23109)

This commit is contained in:
Jeremy Apthorp 2020-04-15 10:45:32 -07:00 committed by GitHub
parent 4ee3c871f3
commit 111f9155e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -204,6 +204,8 @@ class FileChooserDialog {
void FileChooserDialog::OnFileDialogResponse(GtkWidget* widget, int response) {
gtk_widget_hide(dialog_);
v8::Isolate* isolate = v8::Isolate::GetCurrent();
v8::HandleScope scope(isolate);
if (save_promise_) {
gin_helper::Dictionary dict =
gin::Dictionary::CreateEmpty(save_promise_->isolate());