We need to free the string that gtk_tree_mode_get returns to us.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
gtk_tree_model_get(model, iter, 0, &entry, -1);
cmp = strcmp(entry, string);
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)
/* Stop. The entry is bigger than the new one */
if (cmp > 0)