Use simple free function in pa_dynarray_free

This commit is contained in:
Maarten Bosmans 2011-11-18 09:58:08 +01:00 committed by Colin Guthrie
parent 46920bab16
commit e45b02de55
4 changed files with 6 additions and 10 deletions

View file

@ -33,10 +33,6 @@
#include "tokenizer.h"
static void token_free(void *p, void *userdata) {
pa_xfree(p);
}
static void parse(pa_dynarray*a, const char *s, unsigned args) {
int infty = 0;
const char delimiter[] = " \t\n\r";
@ -76,7 +72,7 @@ void pa_tokenizer_free(pa_tokenizer *t) {
pa_dynarray *a = (pa_dynarray*) t;
pa_assert(a);
pa_dynarray_free(a, token_free, NULL);
pa_dynarray_free(a, pa_xfree);
}
const char *pa_tokenizer_get(pa_tokenizer *t, unsigned i) {