diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-01-01 02:15:53 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-01-01 02:15:53 +0800 |
commit | 487820792d4151d60e0a33a25ee155570e864d04 (patch) | |
tree | f70c0dc556a538d093c0f5ef4276ee6e5edf895f /embed/mozilla | |
parent | 473d7c4722c6561df27bf5d396905aae407a892d (diff) | |
download | gsoc2013-epiphany-487820792d4151d60e0a33a25ee155570e864d04.tar gsoc2013-epiphany-487820792d4151d60e0a33a25ee155570e864d04.tar.gz gsoc2013-epiphany-487820792d4151d60e0a33a25ee155570e864d04.tar.bz2 gsoc2013-epiphany-487820792d4151d60e0a33a25ee155570e864d04.tar.lz gsoc2013-epiphany-487820792d4151d60e0a33a25ee155570e864d04.tar.xz gsoc2013-epiphany-487820792d4151d60e0a33a25ee155570e864d04.tar.zst gsoc2013-epiphany-487820792d4151d60e0a33a25ee155570e864d04.zip |
Fix mem leaks.
2003-12-31 Christian Persch <chpe@cvs.gnome.org>
* embed/mozilla/MozDownload.cpp:
* embed/print-dialog.c: (ephy_print_get_print_info):
Fix mem leaks.
Diffstat (limited to 'embed/mozilla')
-rw-r--r-- | embed/mozilla/MozDownload.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/embed/mozilla/MozDownload.cpp b/embed/mozilla/MozDownload.cpp index 4b29b8172..efe13ab88 100644 --- a/embed/mozilla/MozDownload.cpp +++ b/embed/mozilla/MozDownload.cpp @@ -515,10 +515,11 @@ GetFilePath (const char *filename) } else { - path = g_build_filename - (gnome_vfs_expand_initial_tilde (download_dir), - filename, - NULL); + char *expanded; + + expanded = gnome_vfs_expand_initial_tilde (download_dir); + path = g_build_filename (expanded, filename, NULL); + g_free (expanded); } g_free (download_dir); |