summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJüri Valdmann <juri.valdmann@qt.io>2017-09-18 17:48:43 +0200
committerJüri Valdmann <juri.valdmann@qt.io>2017-09-19 07:45:14 +0000
commit8c7ef46d84179024b499bb9654932f2432966279 (patch)
tree6091a569391974d65899b3e084ae427e9590c941
parent9e8c108f779729ff147c6723f6910d1b82582e56 (diff)
Fix uninitialized member variable in PrintViewManagerBaseQt
Valgrind does not approve of the member cookie_ being read by the destructor but never initialized. Change-Id: I419fca616034fb04c4f3ee29edb068881583dac0 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
-rw-r--r--src/core/print_view_manager_base_qt.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/print_view_manager_base_qt.cpp b/src/core/print_view_manager_base_qt.cpp
index 81e07707..efd9ef45 100644
--- a/src/core/print_view_manager_base_qt.cpp
+++ b/src/core/print_view_manager_base_qt.cpp
@@ -67,6 +67,7 @@ namespace QtWebEngineCore {
PrintViewManagerBaseQt::PrintViewManagerBaseQt(content::WebContents *contents)
: printing::PrintManager(contents)
+ , cookie_(0)
, m_isInsideInnerMessageLoop(false)
, m_isExpectingFirstPage(false)
, m_didPrintingSucceed(false)