]> Repos - portaudio/commitdiff
zero asio host api rep immediately after init. prevents (unlikely) issue with trying...
authorrbencina <rbencina@0f58301d-fd10-0410-b4af-bbb618454e57>
Mon, 2 Apr 2012 07:58:04 +0000 (07:58 +0000)
committerrbencina <rbencina@0f58301d-fd10-0410-b4af-bbb618454e57>
Mon, 2 Apr 2012 07:58:04 +0000 (07:58 +0000)
src/hostapi/asio/pa_asio.cpp

index 72e8d1bd6a988c88619b6354d0f62dca74e3b1ab..b2528b03d21e87825c1f159803efe59059215803 100644 (file)
@@ -1038,6 +1038,8 @@ PaError PaAsio_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIndex
         goto error;
     }
 
+    memset( asioHostApi, 0, sizeof(PaAsioHostApiRepresentation) ); /* ensure all fields are zeroed. especially asioHostApi->allocations */
+
     /*
         We initialize COM ourselves here and uninitialize it in Terminate().
         This should be the only COM initialization needed in this module.