diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-04-16 21:46:15 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-04-16 21:46:15 +0000 |
commit | 2515c70aec58814f32fc7e22ab9dfa90fcd934e6 (patch) | |
tree | 45874fb488b7d996fb2323d355172d18cd204a0c /src/trg-torrent-graph.c | |
parent | 5cda9c1baa93b0e0157431b1483d0734ba4afe80 (diff) |
oops.. json_array_get_elements() returns a newly allocated list, not the one owned by the array. fix a few memory leaks.
Diffstat (limited to 'src/trg-torrent-graph.c')
-rw-r--r-- | src/trg-torrent-graph.c | 2 |
1 files changed, 1 insertions, 1 deletions
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("<span font_size=\"small\" color=\"" GRAPH_OUT_COLOR "\">%s: %s</span>", |