From ea549da8df0ab4ebed2b1f79cd215ac2bd0918e2 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Tue, 6 Aug 2019 10:06:09 +0100 Subject: fix url reference counting in about scheme query handlers --- content/fetchers/about.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'content/fetchers/about.c') diff --git a/content/fetchers/about.c b/content/fetchers/about.c index 7d0b3b913..b922708a9 100644 --- a/content/fetchers/about.c +++ b/content/fetchers/about.c @@ -801,9 +801,14 @@ static bool fetch_about_query_auth_handler(struct fetch_about_context *ctx) msg.type = FETCH_FINISHED; fetch_about_send_callback(&msg, ctx); + nsurl_unref(siteurl); + return true; fetch_about_query_auth_handler_aborted: + + nsurl_unref(siteurl); + return false; } @@ -899,9 +904,13 @@ static bool fetch_about_query_ssl_handler(struct fetch_about_context *ctx) msg.type = FETCH_FINISHED; fetch_about_send_callback(&msg, ctx); + nsurl_unref(siteurl); + return true; fetch_about_query_ssl_handler_aborted: + nsurl_unref(siteurl); + return false; } -- cgit v1.2.3