- added a NULL check to FMODStreamCapsule destructor, just to be safe.

This commit is contained in:
Christoph Oelckers 2015-04-26 09:58:10 +02:00
parent a23afbd7ce
commit 8e70a9b894

View file

@ -331,8 +331,11 @@ public:
{ {
Stream->release(); Stream->release();
} }
if (Reader != NULL)
{
delete Reader; delete Reader;
} }
}
void SetStream(FMOD::Sound *stream) void SetStream(FMOD::Sound *stream)
{ {