mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
idxset: Use pa_free_cb_t instead of pa_free2_cb_t
There were no users for the userdata pointer.
This commit is contained in:
parent
43e7868008
commit
061878b5a4
27 changed files with 81 additions and 119 deletions
|
|
@ -585,7 +585,6 @@ fail:
|
|||
|
||||
void pa__done(pa_module *m) {
|
||||
struct userdata *u;
|
||||
struct connection *c;
|
||||
|
||||
pa_assert(m);
|
||||
|
||||
|
|
@ -595,12 +594,8 @@ void pa__done(pa_module *m) {
|
|||
if (u->core_iface)
|
||||
pa_dbusiface_core_free(u->core_iface);
|
||||
|
||||
if (u->connections) {
|
||||
while ((c = pa_idxset_steal_first(u->connections, NULL)))
|
||||
connection_free(c);
|
||||
|
||||
pa_idxset_free(u->connections, NULL, NULL);
|
||||
}
|
||||
if (u->connections)
|
||||
pa_idxset_free(u->connections, (pa_free_cb_t) connection_free);
|
||||
|
||||
/* This must not be called before the connections are freed, because if
|
||||
* there are any connections left, they will emit the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue