aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-01-27 21:52:44 +0800
committerChristian Persch <chpe@src.gnome.org>2004-01-27 21:52:44 +0800
commit3ed0f94e31b15f98eabd0af660e4a3a1f315faa5 (patch)
tree036a6a741f989847f9c5a6c0994e2ac05a4252c6
parent7c0b959f0387ff24b16ef566813e61bdd9734705 (diff)
downloadgsoc2013-epiphany-3ed0f94e31b15f98eabd0af660e4a3a1f315faa5.tar
gsoc2013-epiphany-3ed0f94e31b15f98eabd0af660e4a3a1f315faa5.tar.gz
gsoc2013-epiphany-3ed0f94e31b15f98eabd0af660e4a3a1f315faa5.tar.bz2
gsoc2013-epiphany-3ed0f94e31b15f98eabd0af660e4a3a1f315faa5.tar.lz
gsoc2013-epiphany-3ed0f94e31b15f98eabd0af660e4a3a1f315faa5.tar.xz
gsoc2013-epiphany-3ed0f94e31b15f98eabd0af660e4a3a1f315faa5.tar.zst
gsoc2013-epiphany-3ed0f94e31b15f98eabd0af660e4a3a1f315faa5.zip
Only try to rmdir() the tmp directory if we have one.
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.
-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;