[pulseaudio-commits] r1198 - /trunk/src/modules/alsa-util.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Fri Aug 11 09:56:48 PDT 2006
Author: lennart
Date: Fri Aug 11 18:56:47 2006
New Revision: 1198
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1198&root=pulseaudio&view=rev
Log:
fix bad memory access and a leak when detructing ALSA fd lists
Modified:
trunk/src/modules/alsa-util.c
Modified: trunk/src/modules/alsa-util.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/alsa-util.c?rev=1198&root=pulseaudio&r1=1197&r2=1198&view=diff
==============================================================================
--- trunk/src/modules/alsa-util.c (original)
+++ trunk/src/modules/alsa-util.c Fri Aug 11 18:56:47 2006
@@ -178,7 +178,6 @@
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 @@
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);
}
More information about the pulseaudio-commits
mailing list