diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-05-03 21:18:49 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-05-03 21:18:49 +0800 |
commit | 85a16225477518004481d8ae8cb98b6d1b216c84 (patch) | |
tree | 5b9ebcec45758c4c7fccf6b00b8e8dbce2670a64 /embed | |
parent | 5f0d9e4bb14fe9af71b17a0750809b04c6497cee (diff) | |
download | gsoc2013-epiphany-85a16225477518004481d8ae8cb98b6d1b216c84.tar gsoc2013-epiphany-85a16225477518004481d8ae8cb98b6d1b216c84.tar.gz gsoc2013-epiphany-85a16225477518004481d8ae8cb98b6d1b216c84.tar.bz2 gsoc2013-epiphany-85a16225477518004481d8ae8cb98b6d1b216c84.tar.lz gsoc2013-epiphany-85a16225477518004481d8ae8cb98b6d1b216c84.tar.xz gsoc2013-epiphany-85a16225477518004481d8ae8cb98b6d1b216c84.tar.zst gsoc2013-epiphany-85a16225477518004481d8ae8cb98b6d1b216c84.zip |
Fix a mem leak; thanks to Crispin for spotting it.
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.
Diffstat (limited to 'embed')
-rw-r--r-- | embed/mozilla/mozilla-embed-persist.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |