(gtk) plug a minor leak in the Statistics dialog.

This commit is contained in:
Charles Kerr
2008-03-08 16:10:13 +00:00
parent 6ef6ac0928
commit ea7cca30d2
4 changed files with 15 additions and 5 deletions

View File

@@ -58,7 +58,9 @@ updateStats( gpointer gdata )
setLabel( ui->one_down_lb, tr_strlsize( buf, one.downloadedBytes, sizeof(buf) ) );
setLabel( ui->one_time_lb, tr_strltime( buf, one.secondsActive, sizeof(buf) ) );
setLabelFromRatio( ui->one_ratio_lb, one.ratio );
setLabel( ui->all_sessions_lb, g_strdup_printf( _("Started %d times"), (int)all.sessionCount ) );
g_snprintf( buf, sizeof( buf ), _( "Started %d times" ), (int)all.sessionCount );
setLabel( ui->all_sessions_lb, buf );
setLabel( ui->all_up_lb, tr_strlsize( buf, all.uploadedBytes, sizeof(buf) ) );
setLabel( ui->all_down_lb, tr_strlsize( buf, all.downloadedBytes, sizeof(buf) ) );
setLabel( ui->all_time_lb, tr_strltime( buf, all.secondsActive, sizeof(buf) ) );