Delete vorbis source in soundemitter

This commit is contained in:
Varun Patil 2020-05-06 20:22:29 +05:30
parent 9249f04d39
commit e69f14021a
1 changed files with 1 additions and 0 deletions

View File

@ -203,6 +203,7 @@ struct SoundOpenHandler : FileSystem::OpenHandler
ALDataSource *source = createVorbisSource(ops, false);
buffer = new SoundBuffer;
buffer->bytes = source->fillBufferFull(buffer->alBuffer);
delete source;
#else
Sound_Sample *sample = Sound_NewSample(&ops, ext, 0, STREAM_BUF_SIZE);