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>
This commit is contained in:
Lubomir I. Ivanov 2012-10-01 22:22:12 +03:00 committed by Dirk Hohndel
parent 3244a828f3
commit 0559a6a783
3 changed files with 5 additions and 2 deletions

View file

@ -941,6 +941,7 @@ static void cylinder_widget(GtkWidget *vbox, struct cylinder_widget *cylinder, G
gtk_entry_completion_set_model(completion, GTK_TREE_MODEL(model));
g_signal_connect(completion, "match-selected", G_CALLBACK(completion_cb), cylinder);
gtk_entry_set_completion(entry, completion);
g_object_unref(completion);
hbox = gtk_hbox_new(FALSE, 3);
gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, TRUE, 0);