mirror of
https://github.com/godotengine/godot.git
synced 2024-11-14 08:03:05 +00:00
Merge pull request #10854 from MednauN/ogg-fix
Fix crash when destroying AudioStreamPlaybackOGGVorbis
This commit is contained in:
commit
69ac4cbb37
@ -112,8 +112,8 @@ float AudioStreamPlaybackOGGVorbis::get_length() const {
|
||||
|
||||
AudioStreamPlaybackOGGVorbis::~AudioStreamPlaybackOGGVorbis() {
|
||||
if (ogg_alloc.alloc_buffer) {
|
||||
AudioServer::get_singleton()->audio_data_free(ogg_alloc.alloc_buffer);
|
||||
stb_vorbis_close(ogg_stream);
|
||||
AudioServer::get_singleton()->audio_data_free(ogg_alloc.alloc_buffer);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user