mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d-shader: Initialize the parameter allocator head.
This fixes a memory leak. Fixes: 007f894b9493eb80091899dab971e369f1673a4f
This commit is contained in:
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
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user