From 3b4ae3766410512d8c3dafed8677b729253dddeb Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Wed, 1 Sep 2010 23:56:03 +0200 Subject: [PATCH] Always free uri of the web view after applying addons --- extensions/addons.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extensions/addons.c b/extensions/addons.c index 00cd21fc..4eff71cf 100644 --- a/extensions/addons.c +++ b/extensions/addons.c @@ -1240,6 +1240,7 @@ addons_context_ready_cb (WebKitWebView* web_view, GSList* scripts, *styles; struct AddonElement* script, *style; struct AddonsList* scripts_list, *styles_list; + uri = katze_object_get_string (web_view, "uri"); /* Don't run scripts or styles on blank or special pages */ if (!(uri && *uri && strncmp (uri, "about:", 6))) @@ -1277,6 +1278,7 @@ addons_context_ready_cb (WebKitWebView* web_view, webkit_web_view_execute_script (web_view, style->script_content); styles = g_slist_next (styles); } + g_free (uri); } static void -- 2.39.5