[pulseaudio-commits] r2384 - /branches/glitch-free/src/modules/alsa-util.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Wed May 7 13:35:26 PDT 2008


Author: lennart
Date: Wed May  7 22:35:25 2008
New Revision: 2384

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2384&root=pulseaudio&view=rev
Log:
apparently alsa expects us to free the memory for card names

Modified:
    branches/glitch-free/src/modules/alsa-util.c

Modified: branches/glitch-free/src/modules/alsa-util.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/glitch-free/src/modules/alsa-util.c?rev=2384&root=pulseaudio&r1=2383&r2=2384&view=diff
==============================================================================
--- branches/glitch-free/src/modules/alsa-util.c (original)
+++ branches/glitch-free/src/modules/alsa-util.c Wed May  7 22:35:25 2008
@@ -1060,6 +1060,9 @@
         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) {




More information about the pulseaudio-commits mailing list