Skip to content

Commit

Permalink
Uninitialized memory fix for xaudio2_8+
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo committed Oct 10, 2019
1 parent f86adca commit c7ee099
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cpp/xaudio2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -924,6 +924,7 @@ class XAudio2MasteringVoiceImpl : public IXAudio2MasteringVoice
device_index = device_index_from_device_id(faudio, szDeviceId);
}

voice_sends = NULL;
effect_chain = wrap_effect_chain(pEffectChain);
FAudio_CreateMasteringVoice(
faudio,
Expand Down

2 comments on commit c7ee099

@flibitijibibo
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Andoryuuta This should fix the crash on exit for Cube World.

@Andoryuuta
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome, thank you for pinging me on this!

Please sign in to comment.