]> spindle.queued.net Git - midori/commitdiff
Fix a leaked URI string when injecting user scripts
authorChristian Dywan <christian@twotoasts.de>
Sat, 3 Oct 2009 22:02:23 +0000 (00:02 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sat, 3 Oct 2009 22:02:23 +0000 (00:02 +0200)
panels/midori-addons.c

index cb81b01f8c5475a659d5e9d3e16a967e85ef6b0c..0d1c092e37822f232aa3d2101280835a26985193 100644 (file)
@@ -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);
 }
 
 /**