diff --git a/src/soundemitter.cpp b/src/soundemitter.cpp index 828ac04..406d90e 100644 --- a/src/soundemitter.cpp +++ b/src/soundemitter.cpp @@ -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);