diff options
-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; } |