mirror of
https://github.com/love2d/love.git
synced 2026-08-21 13:09:56 +02:00
Fix issue #169 by courtesy of lukaszbruun.
Calling Source::stop() in Source::~Source() could result in a infinite recursion when Pool::removeSource released the source object.
This commit is contained in:
@@ -82,6 +82,7 @@ namespace openal
|
|||||||
|
|
||||||
void Source::stop()
|
void Source::stop()
|
||||||
{
|
{
|
||||||
|
if (!isStopped())
|
||||||
pool->stop(this);
|
pool->stop(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user