aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/file_dlg.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/file_dlg.c')
-rw-r--r--gtk/file_dlg.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk/file_dlg.c b/gtk/file_dlg.c
index cd5339cd5a..1e92acb3d4 100644
--- a/gtk/file_dlg.c
+++ b/gtk/file_dlg.c
@@ -247,9 +247,7 @@ set_last_open_dir(char *dirname)
updated_last_open_dir = TRUE;
}
- if (last_open_dir) {
- g_free(last_open_dir);
- }
+ g_free(last_open_dir);
last_open_dir = new_last_open_dir;
}