diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | embed/downloader-view.c | 7 |
2 files changed, 10 insertions, 3 deletions
@@ -4,6 +4,12 @@ Fix mem leak. +2004-01-26 Christian Persch <chpe@cvs.gnome.org> + + * embed/downloader-view.c: (update_download_row): + + Fix mem leak. + 2004-01-26 Marco Pesenti Gritti <marco@gnome.org> * embed/mozilla/ContentHandler.cpp: diff --git a/embed/downloader-view.c b/embed/downloader-view.c index 0c2c9caec..1a04f97a4 100644 --- a/embed/downloader-view.c +++ b/embed/downloader-view.c @@ -285,12 +285,13 @@ update_download_row (DownloaderView *dv, EphyDownload *download) if (total != -1) { - char *total_progress; + char *total_progress, *name; + name = ephy_download_get_name (download); total_progress = gnome_vfs_format_file_size_for_display (total); - file = g_strdup_printf ("%s\n%s of %s", - ephy_download_get_name (download), + file = g_strdup_printf ("%s\n%s of %s", name, cur_progress, total_progress); + g_free (name); g_free (total_progress); } else |