[xiph-commits] r3893 - libsydneyaudio/trunk/src

doublec at svn.annodex.net doublec at svn.annodex.net
Thu Mar 26 15:06:52 PDT 2009


Author: doublec
Date: 2009-03-26 15:06:51 -0700 (Thu, 26 Mar 2009)
New Revision: 3893

Modified:
   libsydneyaudio/trunk/src/sydney_audio_waveapi.c
Log:
Ticket 452. Invalid handle used when destroying stream in win32 backend

Modified: libsydneyaudio/trunk/src/sydney_audio_waveapi.c
===================================================================
--- libsydneyaudio/trunk/src/sydney_audio_waveapi.c	2009-03-26 22:03:08 UTC (rev 3892)
+++ libsydneyaudio/trunk/src/sydney_audio_waveapi.c	2009-03-26 22:06:51 UTC (rev 3893)
@@ -152,7 +152,7 @@
     return SA_ERROR_NOT_SUPPORTED;
   }
 
-  if ((_s = (sa_stream_t*)malloc(sizeof(sa_stream_t))) == NULL) {
+  if ((_s = (sa_stream_t*)calloc(1, sizeof(sa_stream_t))) == NULL) {
     return SA_ERROR_OOM;
   }
    



More information about the commits mailing list