mirror of
https://github.com/love2d/love.git
synced 2026-08-20 04:30:09 +02:00
Fix memory leak in audio (bug #249)
This commit is contained in:
@@ -65,6 +65,8 @@ namespace openal
|
|||||||
{
|
{
|
||||||
stop();
|
stop();
|
||||||
alDeleteBuffers((type == TYPE_STATIC) ? 1 : MAX_BUFFERS, buffers);
|
alDeleteBuffers((type == TYPE_STATIC) ? 1 : MAX_BUFFERS, buffers);
|
||||||
|
if (decoder)
|
||||||
|
decoder->release();
|
||||||
}
|
}
|
||||||
|
|
||||||
love::audio::Source * Source::copy()
|
love::audio::Source * Source::copy()
|
||||||
|
|||||||
Reference in New Issue
Block a user