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:
vrld
2011-01-12 22:55:29 +01:00
parent 9d108d2bde
commit 0af7e9e0d8
+2 -1
View File
@@ -82,7 +82,8 @@ namespace openal
void Source::stop() void Source::stop()
{ {
pool->stop(this); if (!isStopped())
pool->stop(this);
} }
void Source::pause() void Source::pause()