Always free uri of the web view after applying addons

This commit is contained in:
Christian Dywan 2010-09-01 23:56:03 +02:00
parent c808e9ce43
commit 3b4ae37664

View file

@ -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