mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
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