aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-01-01 02:15:53 +0800
committerChristian Persch <chpe@src.gnome.org>2004-01-01 02:15:53 +0800
commit487820792d4151d60e0a33a25ee155570e864d04 (patch)
treef70c0dc556a538d093c0f5ef4276ee6e5edf895f /embed
parent473d7c4722c6561df27bf5d396905aae407a892d (diff)
downloadgsoc2013-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')
-rw-r--r--embed/mozilla/MozDownload.cpp9
-rwxr-xr-xembed/print-dialog.c1
2 files changed, 6 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);
diff --git a/embed/print-dialog.c b/embed/print-dialog.c
index bc27defcd..600e7a968 100755
--- a/embed/print-dialog.c
+++ b/embed/print-dialog.c
@@ -164,6 +164,7 @@ ephy_print_get_print_info (void)
expanded = gnome_vfs_expand_initial_tilde (filename);
info->file = g_filename_to_utf8 (expanded, -1, NULL, NULL, NULL);
+ g_free (expanded);
}
else
{