mirror of
https://github.com/love2d/love.git
synced 2026-08-19 12:14:20 +02:00
Resolve memory leak in sources
This commit is contained in:
@@ -159,6 +159,7 @@ namespace openal
|
|||||||
for(std::map<Source *, ALuint>::iterator i = playing.begin(); i != playing.end(); i++)
|
for(std::map<Source *, ALuint>::iterator i = playing.begin(); i != playing.end(); i++)
|
||||||
{
|
{
|
||||||
i->first->stopAtomic();
|
i->first->stopAtomic();
|
||||||
|
i->first->release();
|
||||||
available.push(i->second);
|
available.push(i->second);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user