]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Fixed another memory leak
authorDirk Hohndel <dirk@hohndel.org>
Tue, 14 Aug 2012 21:52:14 +0000 (14:52 -0700)
committerDirk Hohndel <dirk@hohndel.org>
Tue, 14 Aug 2012 21:52:14 +0000 (14:52 -0700)
We need to free the string that gtk_tree_mode_get returns to us.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
info.c

diff --git a/info.c b/info.c
index 1847a49bf98ba8aef7e545d98e57ca58f2b6dfb8..ca5399548c33b3743ef1b76bc8792ea894de2671 100644 (file)
--- 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)