[pulseaudio-discuss] [PATCH] alsa-card: Don't free the modargs in pa_init.

poljar (Damir Jelić) poljarinho at gmail.com
Tue Dec 24 13:12:27 PST 2013


The modargs are in both cases (a succesfull as well as a failed module
initialization) freed already in pa_done().
---
 src/modules/alsa/module-alsa-card.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/modules/alsa/module-alsa-card.c b/src/modules/alsa/module-alsa-card.c
index 1a823d7..b7bceed 100644
--- a/src/modules/alsa/module-alsa-card.c
+++ b/src/modules/alsa/module-alsa-card.c
@@ -768,17 +768,12 @@ int pa__init(pa_module *m) {
                     "is abused (i.e. fixes are not pushed to ALSA), the decibel fix feature may be removed in some future "
                     "PulseAudio version.", u->card->name);
 
-    pa_modargs_free(ma);
-
     return 0;
 
 fail:
     if (reserve)
         pa_reserve_wrapper_unref(reserve);
 
-    if (ma)
-        pa_modargs_free(ma);
-
     pa__done(m);
 
     return -1;
-- 
1.8.5.2



More information about the pulseaudio-discuss mailing list