aboutsummaryrefslogtreecommitdiffstats
path: root/info.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-08-14 14:52:14 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-08-14 14:52:14 -0700
commit77a903a6bb26d60e1736f7d5c118b598916b37f2 (patch)
treed1ff6872f036c52b40925c667cca89d04622bbd7 /info.c
parent307240d6f6fefa83618e8c271203bc57df1081c7 (diff)
downloadsubsurface-77a903a6bb26d60e1736f7d5c118b598916b37f2.tar.gz
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>
Diffstat (limited to 'info.c')
-rw-r--r--info.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/info.c b/info.c
index 1847a49bf..ca5399548 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)