1. Sebastian Dorda
  2. love-kinect-mindstorm

Commits

vrld  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.

  • Participants
  • Parent commits eeacea0
  • Branches default

Comments (0)

Files changed (1)

File src/modules/audio/openal/Source.cpp

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