Fix a leaked URI string when injecting user scripts

This commit is contained in:
Christian Dywan 2009-10-04 00:02:23 +02:00
parent 136f5d981f
commit 2ff14cf64d

View file

@ -781,7 +781,7 @@ midori_web_widget_context_ready_cb (GtkWidget* web_widget,
JSGlobalContextRef js_context, JSGlobalContextRef js_context,
MidoriAddons* addons) MidoriAddons* addons)
{ {
const gchar* uri; gchar* uri;
GSList* elements; GSList* elements;
struct AddonElement* element; struct AddonElement* element;
gchar* fullname; gchar* fullname;
@ -831,6 +831,8 @@ midori_web_widget_context_ready_cb (GtkWidget* web_widget,
elements = g_slist_next (elements); elements = g_slist_next (elements);
} }
g_free (uri);
} }
/** /**