]> code.delx.au - pulseaudio/blobdiff - polyp/module-alsa-sink.c
fix alsa memory leak
[pulseaudio] / polyp / module-alsa-sink.c
index 840fc536455186cd8ec09076e8477e0e7be6e962..69db287546ee2e81e548b045b23063883c96bd54 100644 (file)
@@ -204,6 +204,7 @@ int pa__init(struct pa_core *c, struct pa_module*m) {
     m->userdata = u;
     u->module = m;
     
+    snd_config_update_free_global();
     if (snd_pcm_open(&u->pcm_handle, dev = pa_modargs_get_value(ma, "device", DEFAULT_DEVICE), SND_PCM_STREAM_PLAYBACK, SND_PCM_NONBLOCK) < 0) {
         pa_log(__FILE__": Error opening PCM device %s\n", dev);
         goto fail;