From eab8da2259d5a79d5e892cda83a28cdaef762471 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Tue, 21 Aug 2012 14:34:15 +0200 Subject: ephy-web-view: Take a reference of the certificate returned by the response --- embed/ephy-web-view.c | 1 + 1 file changed, 1 insertion(+) diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c index 12e5f5128..4862d837e 100644 --- a/embed/ephy-web-view.c +++ b/embed/ephy-web-view.c @@ -2143,6 +2143,7 @@ load_changed_cb (WebKitWebView *web_view, response = webkit_web_resource_get_response (resource); g_clear_object (&priv->certificate); if (webkit_uri_response_get_https_status (response, &priv->certificate, &priv->tls_errors)) { + g_object_ref (priv->certificate); security_level = priv->tls_errors == 0 ? EPHY_WEB_VIEW_STATE_IS_SECURE_HIGH : EPHY_WEB_VIEW_STATE_IS_BROKEN; } -- cgit v1.2.3