From: Christian Dywan Date: Sat, 3 Oct 2009 22:02:23 +0000 (+0200) Subject: Fix a leaked URI string when injecting user scripts X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ff14cf64d920a55c66c81f08fb53f4153659af7;p=midori Fix a leaked URI string when injecting user scripts --- diff --git a/panels/midori-addons.c b/panels/midori-addons.c index cb81b01f..0d1c092e 100644 --- a/panels/midori-addons.c +++ b/panels/midori-addons.c @@ -781,7 +781,7 @@ midori_web_widget_context_ready_cb (GtkWidget* web_widget, JSGlobalContextRef js_context, MidoriAddons* addons) { - const gchar* uri; + gchar* uri; GSList* elements; struct AddonElement* element; gchar* fullname; @@ -831,6 +831,8 @@ midori_web_widget_context_ready_cb (GtkWidget* web_widget, elements = g_slist_next (elements); } + + g_free (uri); } /**