mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
tests/shader_runner: Free params.data on test directives (valgrind).
This commit is contained in:
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
@ -713,6 +713,7 @@ static void parse_test_directive(struct shader_runner *runner, const char *line)
|
|||||||
memcpy(params.data, quad, sizeof(quad));
|
memcpy(params.data, quad, sizeof(quad));
|
||||||
params.data_size = sizeof(quad);
|
params.data_size = sizeof(quad);
|
||||||
set_resource(runner, runner->ops->create_resource(runner, ¶ms));
|
set_resource(runner, runner->ops->create_resource(runner, ¶ms));
|
||||||
|
free(params.data);
|
||||||
|
|
||||||
if (!runner->vs_source)
|
if (!runner->vs_source)
|
||||||
runner->vs_source = strdup(vs_source);
|
runner->vs_source = strdup(vs_source);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user