summaryrefslogtreecommitdiffstats
path: root/src/webenginewidgets/api
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2016-10-26 13:01:25 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2016-10-26 12:13:17 +0000
commit785ff563a73ecc67fdd83ec1e015bbb22570cabb (patch)
tree5dbfac4a67e945fc8aa944ceee18bc8ed154ac75 /src/webenginewidgets/api
parentebcc8f62c78516aae738571501c145c4f351a137 (diff)
Fix leakage of FilePickerControl objects in QWebEnginePage
Delete the FilePickerControl object after we're done with it, analog to what the QtQuick UIDelegatesManager does. Change-Id: Id5ef6666c8536b9e5c6877cd522b4c20adae37e5 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'src/webenginewidgets/api')
-rw-r--r--src/webenginewidgets/api/qwebenginepage.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/webenginewidgets/api/qwebenginepage.cpp b/src/webenginewidgets/api/qwebenginepage.cpp
index f10833b9b..3642a9bf5 100644
--- a/src/webenginewidgets/api/qwebenginepage.cpp
+++ b/src/webenginewidgets/api/qwebenginepage.cpp
@@ -1263,6 +1263,8 @@ void QWebEnginePagePrivate::runFileChooser(FilePickerController *controller)
controller->accepted(selectedFileNames);
else
controller->rejected();
+
+ delete controller;
}
WebEngineSettings *QWebEnginePagePrivate::webEngineSettings() const