vkd3d-shader: Initialize the parameter allocator head.

This fixes a memory leak.

Fixes: 007f894b9493eb80091899dab971e369f1673a4f
This commit is contained in:
Zebediah Figura 2023-02-03 19:35:16 -06:00 committed by Alexandre Julliard
parent 91a70c7dda
commit ab601d65cd
Notes: Alexandre Julliard 2023-02-07 22:15:56 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/83

View File

@ -1601,6 +1601,8 @@ void *shader_param_allocator_get(struct vkd3d_shader_param_allocator *allocator,
return NULL;
if (allocator->current)
allocator->current->next = next;
else
allocator->head = next;
allocator->current = next;
allocator->index = 0;
}