On Thu, Feb 26, 2026 at 02:59:59PM +0100, [email protected] wrote:
> From: Marc-André Lureau <[email protected]>
> 
> Listeners now hold a reference to the RamDiscardManager, ensuring it
> stays alive while listeners are registered. The RDM is eagerly freed
> when the last source and listener are removed, and also unreffed during
> MemoryRegion finalization as a safety net.
> 
> This completes the TODO left in the previous commit and prevents both
> use-after-free and memory leaks of the RamDiscardManager.
> 
> Signed-off-by: Marc-André Lureau <[email protected]>

Reviewed-by: Peter Xu <[email protected]>

-- 
Peter Xu


Reply via email to