summaryrefslogtreecommitdiffstats
path: root/gtk-gui.c
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2012-10-01 22:22:12 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-10-01 14:06:46 -0700
commit0559a6a7831ecdae9274fa5e67f941660a6bbab1 (patch)
tree5f4143eb947481f883f48c0826d4a60329fcb391 /gtk-gui.c
parent3244a828f3df9b0403db7de742de399edcb395bb (diff)
downloadsubsurface-0559a6a7831ecdae9274fa5e67f941660a6bbab1.tar.gz
Fixed some small memory leaks
Looks like a GtkEntryCompletion object created with gtk_entry_completion_new() should be unreferenced after usage (e.g. post gtk_entry_set_completion()) In info.c:get_combo_box_entry_text(), moved the free(..) line outside, so that we can free regardless. 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 8e21f3133..0a4ee48e9 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -705,6 +705,7 @@ static void preferences_dialog(GtkWidget *w, gpointer data)
/* Flush the changes out to the system */
subsurface_flush_conf();
}
+ free((void *)current_default);
gtk_widget_destroy(dialog);
}