From: Christian Dywan Date: Wed, 1 Sep 2010 21:56:03 +0000 (+0200) Subject: Always free uri of the web view after applying addons X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b4ae3766410512d8c3dafed8677b729253dddeb;p=midori Always free uri of the web view after applying addons --- 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