tests/shader_runner: Free params.data on test directives (valgrind).

This commit is contained in:
Francisco Casas 2024-01-24 18:50:30 -03:00 committed by Alexandre Julliard
parent 8f9b48c455
commit 969350a280
Notes: Alexandre Julliard 2024-01-25 23:08:40 +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/600

View File

@ -713,6 +713,7 @@ static void parse_test_directive(struct shader_runner *runner, const char *line)
memcpy(params.data, quad, sizeof(quad));
params.data_size = sizeof(quad);
set_resource(runner, runner->ops->create_resource(runner, &params));
free(params.data);
if (!runner->vs_source)
runner->vs_source = strdup(vs_source);