diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | embed/mozilla/mozilla-embed-persist.cpp | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,9 @@ +2004-05-03 Christian Persch <chpe@cvs.gnome.org> + + * embed/mozilla/mozilla-embed-persist.cpp: + + Fix a mem leak; thanks to Crispin for spotting it. + 2004-05-03 Patanjali Somayaji <patanjali@codito.com> * lib/ephy-gui.c: (ephy_gui_confirm_overwrite_file): diff --git a/embed/mozilla/mozilla-embed-persist.cpp b/embed/mozilla/mozilla-embed-persist.cpp index bdee54171..41b7ffd4b 100644 --- a/embed/mozilla/mozilla-embed-persist.cpp +++ b/embed/mozilla/mozilla-embed-persist.cpp @@ -169,8 +169,8 @@ impl_save (EphyEmbedPersist *persist) char *tmp_filename, *base; base = g_build_filename (g_get_tmp_dir (), "sav-XXXXXX", NULL); tmp_filename = ephy_file_tmp_filename (base, "html"); - if (tmp_filename == NULL) return FALSE; g_free (base); + if (tmp_filename == NULL) return FALSE; nsCOMPtr<nsILocalFile> tmpFile = do_CreateInstance (NS_LOCAL_FILE_CONTRACTID); tmpFile->InitWithNativePath (nsDependentCString (tmp_filename)); |