diff --git a/wpe/src/main/cpp/Browser/Page.cpp b/wpe/src/main/cpp/Browser/Page.cpp index b469fb250..b12926a42 100644 --- a/wpe/src/main/cpp/Browser/Page.cpp +++ b/wpe/src/main/cpp/Browser/Page.cpp @@ -460,6 +460,7 @@ void JNIPageCache::nativeScriptDialogClose(JNIEnv* /*env*/, jobject /*obj*/, jlo { Logging::logDebug("Page::nativeScriptDialogClose() [tid %d]", gettid()); auto* dialog = reinterpret_cast(dialogPtr); // NOLINT(performance-no-int-to-ptr) + webkit_script_dialog_unref(dialog); webkit_script_dialog_close(dialog); }