mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
Merge pull request #11631 from asterwyx/master
[stream] reset pool array size after clearing
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user