[xiph-commits] r16918 - trunk/ao/src/plugins/pulse

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Thu Feb 18 11:23:22 PST 2010


Author: xiphmont
Date: 2010-02-18 11:23:21 -0800 (Thu, 18 Feb 2010)
New Revision: 16918

Modified:
   trunk/ao/src/plugins/pulse/ao_pulse.c
Log:
Correct a double free and a missing include causing 64 bit pointers to get 'int-ed'



Modified: trunk/ao/src/plugins/pulse/ao_pulse.c
===================================================================
--- trunk/ao/src/plugins/pulse/ao_pulse.c	2010-02-18 17:17:10 UTC (rev 16917)
+++ trunk/ao/src/plugins/pulse/ao_pulse.c	2010-02-18 19:23:21 UTC (rev 16918)
@@ -32,7 +32,9 @@
 #include <signal.h>
 #include <limits.h>
 
+#include <pulse/pulseaudio.h>
 #include <pulse/simple.h>
+#include <pulse/xmalloc.h>
 #include <pulse/util.h>
 
 #include <ao/ao.h>
@@ -98,7 +100,6 @@
       p = pa_xmalloc(allocated);
 
       if (!(fn = pa_get_binary_name(p, allocated))) {
-        pa_xfree(p);
         break;
       }
 
@@ -249,7 +250,6 @@
         p = pa_xmalloc(allocated);
 
         if (!(fn = pa_get_binary_name(p, allocated))) {
-            pa_xfree(p);
             break;
         }
 



More information about the commits mailing list