mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2026-02-08 10:06:56 -05:00
make the whole stuff run and clean it self up again
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@8 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
aae40dcea2
commit
7dfeb1fc74
11 changed files with 189 additions and 104 deletions
|
|
@ -34,10 +34,16 @@ static void do_free(void *p, void *userdata) {
|
|||
};
|
||||
|
||||
void source_free(struct source *s) {
|
||||
struct output_stream *o;
|
||||
assert(s);
|
||||
|
||||
while ((o = idxset_rrobin(s->output_streams, NULL)))
|
||||
output_stream_free(o);
|
||||
idxset_free(s->output_streams, NULL, NULL);
|
||||
|
||||
idxset_remove_by_data(s->core->sources, s, NULL);
|
||||
idxset_free(s->output_streams, do_free, NULL);
|
||||
|
||||
free(s->name);
|
||||
free(s);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue