mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
flist: Make name non-const to avoid casting with pa_xfree().
This commit is contained in:
parent
641103314a
commit
25c73a00c4
1 changed files with 2 additions and 2 deletions
|
|
@ -54,7 +54,7 @@ struct pa_flist_elem {
|
|||
typedef struct pa_flist_elem pa_flist_elem;
|
||||
|
||||
struct pa_flist {
|
||||
const char *name;
|
||||
char *name;
|
||||
unsigned size;
|
||||
|
||||
pa_atomic_t current_tag;
|
||||
|
|
@ -141,7 +141,7 @@ void pa_flist_free(pa_flist *l, pa_free_cb_t free_cb) {
|
|||
free_cb(pa_atomic_ptr_load(&elem->ptr));
|
||||
}
|
||||
|
||||
pa_xfree((char *) l->name);
|
||||
pa_xfree(l->name);
|
||||
pa_xfree(l);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue