mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: add missing handle scope in file_dialog_gtk (#23109)
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user