From 85a16225477518004481d8ae8cb98b6d1b216c84 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Mon, 3 May 2004 13:18:49 +0000 Subject: Fix a mem leak; thanks to Crispin for spotting it. 2004-05-03 Christian Persch * embed/mozilla/mozilla-embed-persist.cpp: Fix a mem leak; thanks to Crispin for spotting it. --- ChangeLog | 6 ++++++ embed/mozilla/mozilla-embed-persist.cpp | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ef68fb16b..00fb1eb28 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-05-03 Christian Persch + + * embed/mozilla/mozilla-embed-persist.cpp: + + Fix a mem leak; thanks to Crispin for spotting it. + 2004-05-03 Patanjali Somayaji * 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 tmpFile = do_CreateInstance (NS_LOCAL_FILE_CONTRACTID); tmpFile->InitWithNativePath (nsDependentCString (tmp_filename)); -- cgit v1.2.3