Merge pull request #6456 from akallabeth/streampool_fix

Ignore NULL streams in StreamPool_Return
This commit is contained in:
Martin Fleisz 2020-09-02 12:12:06 +02:00 committed by GitHub
commit 182a1eaed7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -218,6 +218,9 @@ out_fail:
void StreamPool_Return(wStreamPool* pool, wStream* s)
{
if (!s)
return;
if (pool->synchronized)
EnterCriticalSection(&pool->lock);