diff options
author | Michal Klocek <michal.klocek@theqtcompany.com> | 2016-06-21 16:01:03 +0200 |
---|---|---|
committer | Michal Klocek <michal.klocek@theqtcompany.com> | 2016-06-23 14:17:02 +0000 |
commit | 964963f76acbcc6df8f021b5b36dbc5e726027b6 (patch) | |
tree | 42fc67dd2da710205e8a31b2867c6d1e15562f10 /src/webenginewidgets/doc/snippets/qtwebengine_qwebenginepage_snippet.cpp | |
parent | 99d3c34167e2ba8c0c505554cdcd4fca20d5223e (diff) | |
download | qtwebengine-964963f76acbcc6df8f021b5b36dbc5e726027b6.tar.gz |
Fix memory leak of unhandled certificateError
If a user does not handle onCertificateError the
instance of QQuickWebEngineCertificateError never
gets to JavaScript land and never gets deleted.
Create a strong reference before emitting the
onCertificateError to guard against the memory
leak.
Change-Id: I49dbf89445d32291e2f52976f0f5e9deda201fcb
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/webenginewidgets/doc/snippets/qtwebengine_qwebenginepage_snippet.cpp')
0 files changed, 0 insertions, 0 deletions