apparently alsa expects us to free the memory for card names
authorLennart Poettering <lennart@poettering.net>
Wed, 7 May 2008 20:35:25 +0000 (20:35 +0000)
committerLennart Poettering <lennart@poettering.net>
Wed, 7 May 2008 20:35:25 +0000 (20:35 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2384 fefdeb5f-60dc-0310-8127-8f9354f1896f

src/modules/alsa-util.c

index 47ed9ac..d212abc 100644 (file)
@@ -1060,6 +1060,9 @@ void pa_alsa_init_proplist(pa_proplist *p, snd_pcm_info_t *pcm_info) {
         pa_proplist_sets(p, PA_PROP_DEVICE_DESCRIPTION, cn);
     else if (n)
         pa_proplist_sets(p, PA_PROP_DEVICE_DESCRIPTION, n);
+
+    free(lcn);
+    free(cn);
 }
 
 int pa_alsa_recover_from_poll(snd_pcm_t *pcm, int revents) {