mirror of
https://github.com/gwdevhub/gMod.git
synced 2026-07-15 15:09:30 +00:00
2b87e0e53a
The D3DPOOL_DEFAULT multisample branch aliased pSurfaceLevel_orig onto pResolvedSurface, leaking the GetSurfaceLevel reference and releasing the resolved surface twice (use-after-free). Track the read source in a separate non-owning pointer so each surface is released exactly once on every path. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>