[polypaudio-commits] r1049 - in /trunk/src/modules: module-alsa-sink.c module-alsa-source.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Tue Jun 20 14:23:11 PDT 2006
Author: lennart
Date: Tue Jun 20 23:23:10 2006
New Revision: 1049
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1049&root=pulseaudio&view=rev
Log:
fix segfault when module-alsa-source fails to load
Modified:
trunk/src/modules/module-alsa-sink.c
trunk/src/modules/module-alsa-source.c
Modified: trunk/src/modules/module-alsa-sink.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/module-alsa-sink.c?rev=1049&root=pulseaudio&r1=1048&r2=1049&view=diff
==============================================================================
--- trunk/src/modules/module-alsa-sink.c (original)
+++ trunk/src/modules/module-alsa-sink.c Tue Jun 20 23:23:10 2006
@@ -342,7 +342,7 @@
}
period_size = fragsize/frame_size;
- u = pa_xmalloc0(sizeof(struct userdata));
+ u = pa_xnew0(struct userdata, 1);
m->userdata = u;
u->module = m;
Modified: trunk/src/modules/module-alsa-source.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/module-alsa-source.c?rev=1049&root=pulseaudio&r1=1048&r2=1049&view=diff
==============================================================================
--- trunk/src/modules/module-alsa-source.c (original)
+++ trunk/src/modules/module-alsa-source.c Tue Jun 20 23:23:10 2006
@@ -335,7 +335,7 @@
}
period_size = fragsize/frame_size;
- u = pa_xnew(struct userdata, 1);
+ u = pa_xnew0(struct userdata, 1);
m->userdata = u;
u->module = m;
More information about the pulseaudio-commits
mailing list