[Xfce4-commits] <midori:master> Fix a leaked URI string when injecting user scripts

Christian Dywan noreply at xfce.org
Sun Oct 4 00:10:04 CEST 2009


Updating branch refs/heads/master
         to 2ff14cf64d920a55c66c81f08fb53f4153659af7 (commit)
       from 136f5d981f5eee654d77c4007b47c5becb1a366f (commit)

commit 2ff14cf64d920a55c66c81f08fb53f4153659af7
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sun Oct 4 00:02:23 2009 +0200

    Fix a leaked URI string when injecting user scripts

 panels/midori-addons.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/panels/midori-addons.c b/panels/midori-addons.c
index cb81b01..0d1c092 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);
 }
 
 /**



More information about the Xfce4-commits mailing list