From: Dirk Hohndel Date: Tue, 14 Aug 2012 21:52:14 +0000 (-0700) Subject: Fixed another memory leak X-Git-Url: http://git.tdb.fi/?p=ext%2Fsubsurface.git;a=commitdiff_plain;h=77a903a6bb26d60e1736f7d5c118b598916b37f2 Fixed another memory leak We need to free the string that gtk_tree_mode_get returns to us. Signed-off-by: Dirk Hohndel --- 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)