if (time != *last_time)
transfer = g_format_size_for_display ((size - *last_size) / (time - *last_time));
else
- transfer = "?B";
+ transfer = g_strup ("?B");
/* i18n: Download tooltip, 4KB of 43MB, 130KB/s */
size_text = g_strdup_printf (_("%s of %s, %s/s"), current, total, transfer);
if (time - *last_time > 5.0)
gtk_progress_bar_get_text (GTK_PROGRESS_BAR (progress)),
size_text);
gtk_widget_set_tooltip_text (progress, text);
+ g_free (size_text);
+ g_free (transfer);
+ g_free (text);
}
static void