diff options
Diffstat (limited to 'embed')
-rw-r--r-- | embed/mozilla/MozDownload.cpp | 9 | ||||
-rwxr-xr-x | embed/print-dialog.c | 1 |
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 { |