diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-01-25 21:53:14 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-01-25 21:53:14 +0800 |
commit | 82b1ad8936e032380ef6fb816067359b8cc4a368 (patch) | |
tree | 28a3ed50b2703eebc2251c599eaa16077d844a90 | |
parent | c9b7b029c7278523452e1962bf188359f534ab1e (diff) | |
download | gsoc2013-epiphany-82b1ad8936e032380ef6fb816067359b8cc4a368.tar gsoc2013-epiphany-82b1ad8936e032380ef6fb816067359b8cc4a368.tar.gz gsoc2013-epiphany-82b1ad8936e032380ef6fb816067359b8cc4a368.tar.bz2 gsoc2013-epiphany-82b1ad8936e032380ef6fb816067359b8cc4a368.tar.lz gsoc2013-epiphany-82b1ad8936e032380ef6fb816067359b8cc4a368.tar.xz gsoc2013-epiphany-82b1ad8936e032380ef6fb816067359b8cc4a368.tar.zst gsoc2013-epiphany-82b1ad8936e032380ef6fb816067359b8cc4a368.zip |
Fix mem leaks.
2004-01-25 Christian Persch <chpe@cvs.gnome.org>
* lib/ephy-file-helpers.c: (ephy_file_tmp_dir),
(ephy_file_tmp_filename):
Fix mem leaks.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | lib/ephy-file-helpers.c | 7 |
2 files changed, 10 insertions, 4 deletions
@@ -1,5 +1,12 @@ 2004-01-25 Christian Persch <chpe@cvs.gnome.org> + * lib/ephy-file-helpers.c: (ephy_file_tmp_dir), + (ephy_file_tmp_filename): + + Fix mem leaks. + +2004-01-25 Christian Persch <chpe@cvs.gnome.org> + * lib/ephy-dialog.c: (set_value_from_pref), (set_combo_box_from_value): diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c index 7bb1fbeae..d95641591 100644 --- a/lib/ephy-file-helpers.c +++ b/lib/ephy-file-helpers.c @@ -50,10 +50,7 @@ ephy_file_tmp_dir (void) full_name = g_build_filename (g_get_tmp_dir (), partial_name, NULL); tmp_dir = mkdtemp (full_name); g_free(partial_name); - if (tmp_dir == NULL) - { - g_free (full_name); - } + g_free (full_name); } return tmp_dir; @@ -87,6 +84,8 @@ ephy_file_tmp_filename (const char *base, } else { + g_free (name); + return NULL; } |