Fixed another memory leak

We need to free the string that gtk_tree_mode_get returns to us.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2012-08-14 14:52:14 -07:00
parent 307240d6f6
commit 77a903a6bb

2
info.c
View file

@ -242,6 +242,8 @@ static gboolean match_string_entry(GtkTreeModel *model, GtkTreePath *path, GtkTr
gtk_tree_model_get(model, iter, 0, &entry, -1);
cmp = strcmp(entry, string);
if (entry)
free(entry);
/* Stop. The entry is bigger than the new one */
if (cmp > 0)