diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-08-14 14:52:14 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-08-14 14:52:14 -0700 |
commit | 77a903a6bb26d60e1736f7d5c118b598916b37f2 (patch) | |
tree | d1ff6872f036c52b40925c667cca89d04622bbd7 /info.c | |
parent | 307240d6f6fefa83618e8c271203bc57df1081c7 (diff) | |
download | subsurface-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |