diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-01-27 00:50:55 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-01-27 00:50:55 +0800 |
commit | 1a0500c89fb759163f207a92f419aaed18005dd0 (patch) | |
tree | 7f57d1336c99652dac5ab7aaba213bc3ced78f3b | |
parent | 55ba1cde8f499fb2b54333717c05a2c6bc646561 (diff) | |
download | gsoc2013-epiphany-1a0500c89fb759163f207a92f419aaed18005dd0.tar gsoc2013-epiphany-1a0500c89fb759163f207a92f419aaed18005dd0.tar.gz gsoc2013-epiphany-1a0500c89fb759163f207a92f419aaed18005dd0.tar.bz2 gsoc2013-epiphany-1a0500c89fb759163f207a92f419aaed18005dd0.tar.lz gsoc2013-epiphany-1a0500c89fb759163f207a92f419aaed18005dd0.tar.xz gsoc2013-epiphany-1a0500c89fb759163f207a92f419aaed18005dd0.tar.zst gsoc2013-epiphany-1a0500c89fb759163f207a92f419aaed18005dd0.zip |
Fix mem leak.
2004-01-26 Christian Persch <chpe@cvs.gnome.org>
* embed/downloader-view.c: (update_download_row):
Fix mem leak.
-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 |