Commit 964963f7 authored by Michal Klocek's avatar Michal Klocek
Browse files

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: default avatarSimon Hausmann <simon.hausmann@qt.io>
Reviewed-by: default avatarAllan Sandfeld Jensen <allan.jensen@qt.io>
parent 99d3c341
No related merge requests found
Showing with 2 additions and 1 deletion
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment