aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--lib/ephy-file-helpers.c9
2 files changed, 12 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 4a7799c5d..dc2f6a205 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-01-27 Christian Persch <chpe@cvs.gnome.org>
+
+ * lib/ephy-file-helpers.c: (ephy_file_helpers_shutdown):
+
+ Only try to rmdir() the tmp directory if we have one.
+
2004-01-27 Marco Pesenti Gritti <marco@gnome.org>
* embed/mozilla/EphyBrowser.cpp:
diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c
index 481d170c6..1c316f8f4 100644
--- a/lib/ephy-file-helpers.c
+++ b/lib/ephy-file-helpers.c
@@ -188,9 +188,12 @@ ephy_file_helpers_shutdown (void)
g_list_free (del_on_exit);
del_on_exit = NULL;
- rmdir (tmp_dir);
- g_free (tmp_dir);
- tmp_dir = NULL;
+ if (tmp_dir != NULL)
+ {
+ rmdir (tmp_dir);
+ g_free (tmp_dir);
+ tmp_dir = NULL;
+ }
g_free (dot_dir);
dot_dir = NULL;