[Xfce4-commits] <midori:master> Always free uri of the web view after applying addons

Christian Dywan noreply at xfce.org
Thu Sep 2 00:00:02 CEST 2010


Updating branch refs/heads/master
         to 3b4ae3766410512d8c3dafed8677b729253dddeb (commit)
       from c808e9ce434a9e82bf8995547ac98478b62146f8 (commit)

commit 3b4ae3766410512d8c3dafed8677b729253dddeb
Author: Christian Dywan <christian at twotoasts.de>
Date:   Wed Sep 1 23:56:03 2010 +0200

    Always free uri of the web view after applying addons

 extensions/addons.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/extensions/addons.c b/extensions/addons.c
index 00cd21f..4eff71c 100644
--- a/extensions/addons.c
+++ b/extensions/addons.c
@@ -1240,6 +1240,7 @@ addons_context_ready_cb (WebKitWebView*   web_view,
     GSList* scripts, *styles;
     struct AddonElement* script, *style;
     struct AddonsList* scripts_list, *styles_list;
+
     uri = katze_object_get_string (web_view, "uri");
     /* Don't run scripts or styles on blank or special pages */
     if (!(uri && *uri && strncmp (uri, "about:", 6)))
@@ -1277,6 +1278,7 @@ addons_context_ready_cb (WebKitWebView*   web_view,
             webkit_web_view_execute_script (web_view, style->script_content);
         styles = g_slist_next (styles);
     }
+    g_free (uri);
 }
 
 static void



More information about the Xfce4-commits mailing list