Commits

Anonymous committed c9aaf9c

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.

Comments (0)

Files changed (1)

src/modules/audio/openal/Source.cpp

 
 	void Source::stop()
 	{
-		pool->stop(this);
+		if (!isStopped())
+			pool->stop(this);
 	}
 
 	void Source::pause()