]> git.tdb.fi Git - ext/subsurface.git/blobdiff - info.c
Fixed another memory leak
[ext/subsurface.git] / 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)