Fix a leaked URI string when injecting user scripts
This commit is contained in:
parent
136f5d981f
commit
2ff14cf64d
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue