From 2ff14cf64d920a55c66c81f08fb53f4153659af7 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 4 Oct 2009 00:02:23 +0200 Subject: [PATCH] Fix a leaked URI string when injecting user scripts --- panels/midori-addons.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } /**