Merge pull request #11631 from asterwyx/master

[stream] reset pool array size after clearing
This commit is contained in:
akallabeth
2025-05-26 09:07:11 +02:00
committed by GitHub

View File

@@ -369,6 +369,7 @@ void StreamPool_Clear(wStreamPool* pool)
struct s_StreamPoolEntry* cur = &pool->aArray[x];
discard_entry(cur, TRUE);
}
pool->aSize = 0;
if (pool->uSize > 0)
{
@@ -379,6 +380,7 @@ void StreamPool_Clear(wStreamPool* pool)
struct s_StreamPoolEntry* cur = &pool->uArray[x];
discard_entry(cur, TRUE);
}
pool->uSize = 0;
}
StreamPool_Unlock(pool);