mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
Use simple free function in pa_dynarray_free
This commit is contained in:
parent
46920bab16
commit
e45b02de55
4 changed files with 6 additions and 10 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue