We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1971 - Off-by-one error in SDL_AudioQuit (with patch)
Summary: Off-by-one error in SDL_AudioQuit (with patch)
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: audio (show other bugs)
Version: HG 2.0
Hardware: All All
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords: target-2.0.0
Depends on:
Blocks:
 
Reported: 2013-07-14 05:59 UTC by Rainer Deyke
Modified: 2013-07-14 12:25 UTC (History)
0 users

See Also:


Attachments
Fix. (382 bytes, text/plain)
2013-07-14 05:59 UTC, Rainer Deyke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Deyke 2013-07-14 05:59:06 UTC
Created attachment 1232 [details]
Fix.

In SDL_AudioQuit, when SDL iterates over the open audio devices in order to close them, it passes an incorrect value to SDL_CloseAudioDevice.  The loop index is 0-based, but SDL_CloseAudioDevice expects a 1-based index.
Comment 1 Ryan C. Gordon 2013-07-14 12:25:12 UTC
This is now hg changeset 6cbb6aaedc20, thanks!

--ryan.