alsa: unify alsa log handling and snd_config_update_free_global() handling in one place

This commit is contained in:
Lennart Poettering 2009-06-18 21:27:02 +02:00
parent 25e5197f6a
commit 348dcd6a31
7 changed files with 13 additions and 20 deletions

View file

@ -106,8 +106,7 @@ int pa__init(pa_module*m) {
pa_assert(m);
pa_alsa_redirect_errors_inc();
snd_config_update_free_global();
pa_alsa_refcnt_inc();
if (!(ma = pa_modargs_new(m->argument, valid_modargs))) {
pa_log("Failed to parse module arguments");
@ -148,6 +147,5 @@ void pa__done(pa_module*m) {
if ((source = m->userdata))
pa_alsa_source_free(source);
snd_config_update_free_global();
pa_alsa_redirect_errors_dec();
pa_alsa_refcnt_dec();
}