From 77a903a6bb26d60e1736f7d5c118b598916b37f2 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 14 Aug 2012 14:52:14 -0700 Subject: [PATCH] Fixed another memory leak We need to free the string that gtk_tree_mode_get returns to us. Signed-off-by: Dirk Hohndel --- info.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/info.c b/info.c index 1847a49..ca53995 100644 --- a/info.c +++ b/info.c @@ -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) -- 2.43.0