mirror of
https://github.com/love2d/love.git
synced 2026-08-19 20:19:42 +02:00
Added a forgotten GC release
This commit is contained in:
@@ -124,8 +124,10 @@ namespace openal
|
|||||||
|
|
||||||
void Audio::play(love::audio::Music * music)
|
void Audio::play(love::audio::Music * music)
|
||||||
{
|
{
|
||||||
Source * source = new Source(pool, music->clone());
|
love::audio::Music *cloned = music->clone();
|
||||||
|
Source * source = new Source(pool, cloned);
|
||||||
play(source);
|
play(source);
|
||||||
|
cloned->release();
|
||||||
source->release();
|
source->release();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user