From 2515c70aec58814f32fc7e22ab9dfa90fcd934e6 Mon Sep 17 00:00:00 2001 From: Alan Fitton Date: Sat, 16 Apr 2011 21:46:15 +0000 Subject: oops.. json_array_get_elements() returns a newly allocated list, not the one owned by the array. fix a few memory leaks. --- src/trg-torrent-graph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/trg-torrent-graph.c') diff --git a/src/trg-torrent-graph.c b/src/trg-torrent-graph.c index fd38cae..3f599ae 100644 --- a/src/trg-torrent-graph.c +++ b/src/trg-torrent-graph.c @@ -394,7 +394,7 @@ static void trg_torrent_graph_update_net(TrgTorrentGraph * g) fp[0] = 1.0f * priv->out / priv->max; fp[1] = 1.0f * priv->in / priv->max; - trg_strlspeed(speed, (gint64) (priv->out / 1024)); + trg_strlspeed(speed, (gint64) (priv->out / KILOBYTE_FACTOR)); labelMarkup = g_markup_printf_escaped("%s: %s", -- cgit v1.2.3