]> spindle.queued.net Git - midori/commitdiff
Free script code in thumb_view_load_status_cb with g_free
authorChristian Dywan <christian@twotoasts.de>
Thu, 14 Oct 2010 18:30:49 +0000 (20:30 +0200)
committerChristian Dywan <christian@twotoasts.de>
Thu, 14 Oct 2010 19:07:55 +0000 (21:07 +0200)
Allocating and releasing must match.

midori/midori-view.c

index 4c4b37ef01fbc24d453132ab8d86d56ca02bdfcc..40ff24d3dfb9348cb57f3e5cd447d2153752df0d 100644 (file)
@@ -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);