mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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>
This commit is contained in:
parent
307240d6f6
commit
77a903a6bb
1 changed files with 2 additions and 0 deletions
2
info.c
2
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)
|
||||
|
|
Loading…
Add table
Reference in a new issue