[Xfce4-commits] <midori:master> Free script code in thumb_view_load_status_cb with g_free

Christian Dywan noreply at xfce.org
Thu Oct 14 21:18:03 CEST 2010


Updating branch refs/heads/master
         to 54d037f689719a0f877b03d313dc3b670a17afb3 (commit)
       from 8302cfe004a12f8f2af1d565f2d1122a26187758 (commit)

commit 54d037f689719a0f877b03d313dc3b670a17afb3
Author: Christian Dywan <christian at twotoasts.de>
Date:   Thu Oct 14 20:30:49 2010 +0200

    Free script code in thumb_view_load_status_cb with g_free
    
    Allocating and releasing must match.

 midori/midori-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/midori/midori-view.c b/midori/midori-view.c
index 4c4b37e..40ff24d 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -5219,7 +5219,7 @@ thumb_view_load_status_cb (MidoriView* thumb_view,
     js = g_strdup_printf ("setThumbnail('%s','%s','%s');",
                           dom_id, encoded, thumb_view->uri);
     webkit_web_view_execute_script (WEBKIT_WEB_VIEW (view->web_view), js);
-    free (js);
+    g_free (js);
     g_object_unref (img);
 
     g_free (dom_id);



More information about the Xfce4-commits mailing list