Delete vorbis source in soundemitter
This commit is contained in:
parent
9249f04d39
commit
e69f14021a
|
@ -203,6 +203,7 @@ struct SoundOpenHandler : FileSystem::OpenHandler
|
||||||
ALDataSource *source = createVorbisSource(ops, false);
|
ALDataSource *source = createVorbisSource(ops, false);
|
||||||
buffer = new SoundBuffer;
|
buffer = new SoundBuffer;
|
||||||
buffer->bytes = source->fillBufferFull(buffer->alBuffer);
|
buffer->bytes = source->fillBufferFull(buffer->alBuffer);
|
||||||
|
delete source;
|
||||||
#else
|
#else
|
||||||
Sound_Sample *sample = Sound_NewSample(&ops, ext, 0, STREAM_BUF_SIZE);
|
Sound_Sample *sample = Sound_NewSample(&ops, ext, 0, STREAM_BUF_SIZE);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue