diff options
| author | Chris <[email protected]> | 2021-02-14 16:37:34 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-02-14 17:37:34 +0100 |
| commit | ccb083af52989c8681aa8047cd6380f7081d3381 (patch) | |
| tree | 95d4d049748c3ca881a764956381f113d2ea298e /examples/shapes | |
| parent | c7476f0aa508b4d04428e340ef1ffddca5b90b9a (diff) | |
| download | raylib-ccb083af52989c8681aa8047cd6380f7081d3381.tar.gz raylib-ccb083af52989c8681aa8047cd6380f7081d3381.zip | |
[raudio] Fix load and unload issues with Music (#1588)
* Add MUSIC_AUDIO_NONE to MusicContextType and format fixes
- Useful to check the context type to see if the format is recognized. Defaulting to wav causes issues where formats are assumed to
be wav.
* Fix memory issues with LoadMusicStream and UnloadMusicStream
- Set ctxType and ctxData even if the format fails to load.
- Set ctxData to NULL if it fails and check for null inside UnloadMusicStream.
- Change RL_MALLOC when loading formats to RL_CALLOC to prevent undefined behavior.
- Add NULL check when unloading xm file.
Diffstat (limited to 'examples/shapes')
0 files changed, 0 insertions, 0 deletions
