projects
/
profile
/
ivi
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
576c4dd
)
fix bad memory access and a leak when detructing ALSA fd lists
author
Lennart Poettering
<lennart@poettering.net>
Fri, 11 Aug 2006 16:56:47 +0000
(16:56 +0000)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 11 Aug 2006 16:56:47 +0000
(16:56 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1198
fefdeb5f
-60dc-0310-8127-
8f9354f1896f
src/modules/alsa-util.c
patch
|
blob
|
history
diff --git
a/src/modules/alsa-util.c
b/src/modules/alsa-util.c
index
969a3da
..
39ddbfe
100644
(file)
--- a/
src/modules/alsa-util.c
+++ b/
src/modules/alsa-util.c
@@
-178,7
+178,6
@@
struct pa_alsa_fdlist *pa_alsa_fdlist_new(void) {
struct pa_alsa_fdlist *fdl;
fdl = pa_xmalloc(sizeof(struct pa_alsa_fdlist));
- assert(fdl);
fdl->num_fds = 0;
fdl->fds = NULL;
@@
-208,7
+207,7
@@
void pa_alsa_fdlist_free(struct pa_alsa_fdlist *fdl) {
int i;
assert(fdl->m);
for (i = 0;i < fdl->num_fds;i++)
- fdl->m->io_free(fdl->ios[
0
]);
+ fdl->m->io_free(fdl->ios[
i
]);
pa_xfree(fdl->ios);
}