diff options
author | Vincent Sanders <vince@kyllikki.org> | 2019-08-06 10:06:09 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2019-08-06 10:07:35 +0100 |
commit | ea549da8df0ab4ebed2b1f79cd215ac2bd0918e2 (patch) | |
tree | 730825f006079eef427ea525edae06b766705276 /content | |
parent | 5e45c4498c0a8a24330864b3d4c68ffe891ce15e (diff) | |
download | netsurf-ea549da8df0ab4ebed2b1f79cd215ac2bd0918e2.tar.gz netsurf-ea549da8df0ab4ebed2b1f79cd215ac2bd0918e2.tar.bz2 |
fix url reference counting in about scheme query handlers
Diffstat (limited to 'content')
-rw-r--r-- | content/fetchers/about.c | 9 |
1 files changed, 9 insertions, 0 deletions
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; } |