From 51d952c7680f1c06fc0650fa5d405fed4c4bfc53 Mon Sep 17 00:00:00 2001 From: BrainL Date: Mon, 9 Sep 2024 09:32:13 +0000 Subject: [PATCH] update interfaces/kits/picker/src/picker_n_exporter.cpp. Signed-off-by: BrainL --- interfaces/kits/picker/src/picker_n_exporter.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/interfaces/kits/picker/src/picker_n_exporter.cpp b/interfaces/kits/picker/src/picker_n_exporter.cpp index cd4eeb99..187e093a 100644 --- a/interfaces/kits/picker/src/picker_n_exporter.cpp +++ b/interfaces/kits/picker/src/picker_n_exporter.cpp @@ -150,6 +150,9 @@ static void StartModalPickerAsyncCallbackComplete(napi_env env, napi_status stat context->work, *jsContext); } delete context; + if (window_) { + window_ = nullptr; + } } static bool IsTypeRight(napi_env env, napi_value val, napi_valuetype type)