Autocomplete: added free function

Fixed tests
This commit is contained in:
James Booth
2013-01-11 00:17:18 +00:00
parent ce8faa8d34
commit 89967905db
10 changed files with 38 additions and 21 deletions

View File

@@ -63,6 +63,14 @@ p_autocomplete_reset(PAutocomplete ac)
}
}
void
p_autocomplete_free(PAutocomplete ac)
{
p_autocomplete_clear(ac);
g_free(ac);
ac = NULL;
}
gboolean
p_autocomplete_add(PAutocomplete ac, void *item)
{