1
0
Fork 0

Merge pull request #10854 from MednauN/ogg-fix

Fix crash when destroying AudioStreamPlaybackOGGVorbis
This commit is contained in:
Rémi Verschelde 2017-09-01 21:51:48 +02:00 committed by GitHub
commit 69ac4cbb37
1 changed files with 1 additions and 1 deletions

View File

@ -112,8 +112,8 @@ float AudioStreamPlaybackOGGVorbis::get_length() const {
AudioStreamPlaybackOGGVorbis::~AudioStreamPlaybackOGGVorbis() { AudioStreamPlaybackOGGVorbis::~AudioStreamPlaybackOGGVorbis() {
if (ogg_alloc.alloc_buffer) { if (ogg_alloc.alloc_buffer) {
AudioServer::get_singleton()->audio_data_free(ogg_alloc.alloc_buffer);
stb_vorbis_close(ogg_stream); stb_vorbis_close(ogg_stream);
AudioServer::get_singleton()->audio_data_free(ogg_alloc.alloc_buffer);
} }
} }