[Stk] RtAudio small patch for DsHandle
Stephen Sinclair
sinclair at music.mcgill.ca
Wed, 03 Oct 2007 19:21:23 -0400
This is a multi-part message in MIME format.
--------------020701000703060101070409
Content-Type: text/plain; charset=Big5
Content-Transfer-Encoding: 7bit
Hi,
I found that the rtsine example was crashing under Visual Studio during
cleanup.
Seems like the buffer[] array in DsHandle was not initialized to 0, so
it was trying to free a non-NULL pointer.
There may be a couple other uninitialized members in there.
Steve
--------------020701000703060101070409
Content-Type: text/plain;
name="RtAudio.fixbuffer.patch"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="RtAudio.fixbuffer.patch"
LS0tIFJ0QXVkaW8uY3BwLm9yaWcJMjAwNy0xMC0wMyAxOToxNzo1MS4xODc1MDAwMDAgLTA0
MDAKKysrIFJ0QXVkaW8uY3BwCTIwMDctMTAtMDMgMTk6MTg6MTAuODI4MTI1MDAwIC0wNDAw
CkBAIC0zMjIzLDcgKzMyMjMsNyBAQAogICBIQU5ETEUgY29uZGl0aW9uOwogCiAgIERzSGFu
ZGxlKCkKLSAgICA6ZHJhaW5Db3VudGVyKDApLCBpbnRlcm5hbERyYWluKGZhbHNlKSB7IGlk
WzBdID0gMCwgaWRbMV0gPSAwOyB4cnVuWzBdID0gZmFsc2U7IHhydW5bMV0gPSBmYWxzZTsg
YnVmZmVyUG9pbnRlclswXSA9IDA7IGJ1ZmZlclBvaW50ZXJbMV0gPSAwOyB9CisgICAgOmRy
YWluQ291bnRlcigwKSwgaW50ZXJuYWxEcmFpbihmYWxzZSkgeyBpZFswXSA9IDAsIGlkWzFd
ID0gMDsgYnVmZmVyWzBdID0gMDsgYnVmZmVyWzFdID0gMDsgeHJ1blswXSA9IGZhbHNlOyB4
cnVuWzFdID0gZmFsc2U7IGJ1ZmZlclBvaW50ZXJbMF0gPSAwOyBidWZmZXJQb2ludGVyWzFd
ID0gMDsgfQogfTsKIAogLyoK
--------------020701000703060101070409--