user avatar
Fix memory leak of unhandled certificateError
Michal Klocek authored
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>
964963f7