diff options
Diffstat (limited to 'lib/ephy-file-helpers.c')
-rw-r--r-- | lib/ephy-file-helpers.c | 9 |
1 files changed, 6 insertions, 3 deletions
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; |