Files
ppsspp/Common/GPU
Henrik RydgårdandClaude Opus 5 b2c74e205a Vulkan: Fix Promise leak and unguarded array write in DestroyVariants
The loop queue-deleted the VkPipeline and nulled the slot without deleting the
Promise the array owns - DestroyVariantsInstant right below it shows the intended
ownership. That's one leaked Promise per destroyed variant per cached pipeline,
on every MSAA or resolution change.

It also wrote pipeline[] without taking mutex_, which the header documents as
protecting that array and which the render thread holds while reading and
replacing the same slots in PerformRenderPass. The two have to be fixed together:
the missing delete was the only thing keeping this a leak rather than a
use-after-free.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vd8ntC2brCUtCrDJMqLbs8
2026-08-29 11:42:47 +02:00
..
2026-08-10 04:59:55 -04:00
2024-12-20 20:31:58 +01:00
2026-07-29 14:42:24 +02:00