mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2026-02-09 10:07:23 -05:00
a bunch of fixes
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@10 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
edfad835cb
commit
c8cf0c1ce9
8 changed files with 28 additions and 21 deletions
|
|
@ -27,12 +27,6 @@ struct source* source_new(struct core *core, const char *name, const struct samp
|
|||
return s;
|
||||
}
|
||||
|
||||
static void do_free(void *p, void *userdata) {
|
||||
struct output_stream *o = p;
|
||||
assert(o);
|
||||
output_stream_free(o);
|
||||
};
|
||||
|
||||
void source_free(struct source *s) {
|
||||
struct output_stream *o;
|
||||
assert(s);
|
||||
|
|
@ -42,7 +36,6 @@ void source_free(struct source *s) {
|
|||
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