12 Sep
2025
12 Sep
'25
6:02 a.m.
Rémi Bernon (@rbernon) commented about dlls/windows.media.playback.mediaplayer/main.c:
TRACE( "iface %p decreasing refcount to %lu.\n", iface, ref );
- if (!ref) free( impl ); + if (!ref) + { + if (impl->controls) + { + ISystemMediaTransportControls_Release( impl->controls ); + DestroyWindow( impl->window ); + }
```suggestion:-4+0 ISystemMediaTransportControls_Release( impl->controls ); DestroyWindow( impl->window ); ``` We can assume it's always not NULL as it's created right away and failures are handled already. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/8951#note_115732