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

@ -287,8 +287,7 @@ int pa__init(pa_module *m) {
const char *description;
char *fn = NULL;
pa_alsa_redirect_errors_inc();
snd_config_update_free_global();
pa_alsa_refcnt_inc();
pa_assert(m);
@ -443,6 +442,5 @@ void pa__done(pa_module*m) {
pa_xfree(u);
finish:
snd_config_update_free_global();
pa_alsa_redirect_errors_dec();
pa_alsa_refcnt_dec();
}