msvcp120: Fix concurrent_vector_int_dtor helper.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2018-07-11 12:32:25 +02:00 committed by Alexandre Julliard
parent ff529f4645
commit c217dd36cb
1 changed files with 7 additions and 3 deletions

View File

@ -2576,10 +2576,14 @@ static void concurrent_vector_int_dtor(vector_base_v4 *this)
blocks = (size_t)call_func2(p_vector_base_v4__Internal_clear,
this, concurrent_vector_int_destroy);
while(this->first_block && blocks >= this->first_block) {
for(blocks--; blocks >= this->first_block; blocks--) {
vector_alloc_count--;
free(this->segment[blocks - this->first_block]);
blocks--;
free(this->segment[blocks]);
}
if(this->first_block) {
vector_alloc_count--;
free(this->segment[0]);
}
call_func1(p_vector_base_v4_dtor, this);