Update of /cvsroot/pure-data/pd/portaudio/pa_mac_core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2766
Modified Files: Tag: devel_0_39 pa_mac_core.c Log Message: tentative fix for memory leak found by Enrique Erne and Lorenz Schori.
Index: pa_mac_core.c =================================================================== RCS file: /cvsroot/pure-data/pd/portaudio/pa_mac_core/pa_mac_core.c,v retrieving revision 1.9.2.2 retrieving revision 1.9.2.3 diff -C2 -d -r1.9.2.2 -r1.9.2.3 *** pa_mac_core.c 12 Jul 2005 15:45:50 -0000 1.9.2.2 --- pa_mac_core.c 5 Nov 2005 15:18:01 -0000 1.9.2.3 *************** *** 466,469 **** --- 466,470 ---- }
+ PaUtil_FreeMemory(timeInfo); PaUtil_EndCpuLoadMeasurement( &clientData->stream->cpuLoadMeasurer, frameCount );
*************** *** 494,497 **** --- 495,499 ---- clientData->callback(clientData->inputBuffer, NULL, frameCount, timeInfo, paNoFlag, clientData->userData);
+ PaUtil_FreeMemory(timeInfo); PaUtil_EndCpuLoadMeasurement( &clientData->stream->cpuLoadMeasurer, frameCount ); } *************** *** 517,521 ****
CopyOutputData(outOutputData, clientData, frameCount); ! PaUtil_EndCpuLoadMeasurement( &clientData->stream->cpuLoadMeasurer, frameCount ); } --- 519,523 ----
CopyOutputData(outOutputData, clientData, frameCount); ! PaUtil_FreeMemory(timeInfo); PaUtil_EndCpuLoadMeasurement( &clientData->stream->cpuLoadMeasurer, frameCount ); }