diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-08-26 15:35:48 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-08-26 15:36:40 -0700 |
commit | b693bb3fb962c54767f8430058575441df243b13 (patch) | |
tree | 762bde268974cedef59c8a44db6de65205433200 /gtk-gui.c | |
parent | 9380f78c82287deedc56ae831142801a3c4e9d42 (diff) | |
download | subsurface-b693bb3fb962c54767f8430058575441df243b13.tar.gz |
Might as well free current_file
In commit fd2debc1e730 ("replaced stdndup() with the inlined equivalent")
Lubomir freed the memory from one of my two strdups but not the other.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'gtk-gui.c')
-rw-r--r-- | gtk-gui.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -222,6 +222,7 @@ static void file_save_as(GtkWidget *w, gpointer data) gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER(dialog), current_file); free(current_dir); + free(current_file); if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_ACCEPT) { filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog)); |