| Summary: | Off-by-one error in SDL_AudioQuit (with patch) | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Rainer Deyke <rainerd> |
| Component: | audio | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | Keywords: | target-2.0.0 |
| Version: | HG 2.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | Fix. | ||
This is now hg changeset 6cbb6aaedc20, thanks! --ryan. |
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.