summaryrefslogtreecommitdiffstats
path: root/gtk-gui.c
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2012-09-18 14:24:54 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-09-18 07:29:33 -0400
commit914488b79691ec8286f59a927aea3257db7c1581 (patch)
treeb63913914ba10a6797456bf3142494488c6ca653 /gtk-gui.c
parent16bff5265e58c9708cd2d28cc0d7d7c7ca569fe1 (diff)
downloadsubsurface-914488b79691ec8286f59a927aea3257db7c1581.tar.gz
Fixed a couple of memleaks in gtk-gui.c and info.c
Related to subsurface_default_filename() and g_path_get_basename(). Against 3835faa8fb02df8edb. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'gtk-gui.c')
-rw-r--r--gtk-gui.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk-gui.c b/gtk-gui.c
index 8d611242d..d797b8d56 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -526,6 +526,7 @@ static void pick_default_file(GtkWidget *w, GtkButton *button)
free(current_def_dir);
free(current_def_file);
+ free((void *)current_default);
gtk_widget_destroy(fs_dialog);
gtk_window_set_accept_focus(GTK_WINDOW(preferences), TRUE);
}