pulseaudio/src/modules/alsa
Peter Meerwald 56e578c310 alsa-card: Don't free the modargs in pa__init
The modargs are in both cases (a succesfull as well as a failed module
initialization) freed already in pa__done().

To avoid leaking modargs memory before they are assigned to u->modargs, the
code is reorganized to first allocate userdata, and then allocate the modargs.
Local variable ma is not needed anymore.

discussion here
http://lists.freedesktop.org/archives/pulseaudio-discuss/2013-December/019661.html

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Reported-by: poljar (Damir Jelić) <poljarinho@gmail.com>
2014-01-10 12:32:36 +02:00
..
mixer alsa-mixer: Add internal surround speaker elements 2013-11-01 21:27:29 +01:00
alsa-mixer.c alsa-mixer: Free the description key in alsa_path_free(). 2014-01-03 13:17:08 +02:00
alsa-mixer.h alsa: Allow sample spec override in mappings 2013-09-17 18:31:03 +05:30
alsa-sink.c idxset: Allow deep copying with pa_idxset_copy() 2013-11-29 07:14:39 +02:00
alsa-sink.h alsa: Remove unneeded include 2011-06-22 22:45:27 +01:00
alsa-source.c alsa: Fix crash when loading bare ALSA sink/source 2013-10-10 00:03:56 +05:30
alsa-source.h alsa: rework mixer logic 2009-06-17 03:45:14 +02:00
alsa-ucm.c modules: Fix resource leak in alsa-ucm 2013-12-20 12:54:18 +01:00
alsa-ucm.h alsa-ucm: Use playback/capture rate specification from UCM 2013-09-17 18:32:48 +05:30
alsa-util.c alsa: Log some output if we disable tsched for BATCH devices 2013-12-06 06:00:15 -08:00
alsa-util.h Fix alignment issues introduced by the pa_bool -> bool conversion 2013-07-04 12:25:40 +03:00
module-alsa-card.c alsa-card: Don't free the modargs in pa__init 2014-01-10 12:32:36 +02:00
module-alsa-sink.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
module-alsa-source.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00