Skip to content

Commit 42b3ebe

Browse files
committed
Replace union with struct in audio_mixer_voice
audio_mixer_play_ogg calls stb_vorbis_close if types.ogg.stream is set but it overlaps with wav.position and stb_vorbis_close ends up freeing unallocated space and crashing Space saving is minor, so let's just split the variants
1 parent 716bb5e commit 42b3ebe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

audio/audio_mixer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ struct audio_mixer_sound
117117

118118
struct audio_mixer_voice
119119
{
120-
union
120+
struct
121121
{
122122
struct
123123
{

0 commit comments

Comments
 (0)