Alexandre Julliard pushed to branch master at wine / wine
Commits: 223763b2 by Yuxuan Shui at 2025-07-07T23:02:51+02:00 wined3d: Fix double-free when shader_set_function fails.
shader_set_function is inconsistent in whether it will cleanup the shader before returning an error. Most of the callers of shader_set_function will do the cleanup, which could double-free; but not all of them do, which means there are also potential leaks. So make sure all callers do, and remove shader_cleanup calls from shader_set_function.
- - - - -
1 changed file:
- dlls/wined3d/shader.c
View it on GitLab: https://gitlab.winehq.org/wine/wine/-/commit/223763b22d3a94473ce01d5d5f316f5...