c1a85bc1
by Yuxuan Shui at 2025-08-27T17:02:59+02:00
dmime: Fix use-after-free after performance_CloseDown.
IDirectMusicPerformance8 holds references to music ports in channel_blocks. These ports must outlive
their parent IDirectMusic, because in synth_port_Release, they remove themselves from their parent.
performance_CloseDown releases the IDirectMusic, but doesn't release its ports. So when these ports
are later released in performance_Release, they uses the already freed IDirectMusic.
Found by ASan.