19 Jun
2024
19 Jun
'24
10:11 a.m.
Rémi Bernon (@rbernon) commented about dlls/winegstreamer/video_encoder.c:
+ TRACE("iface %p increasing refcount to %lu.\n", encoder, refcount); + + return refcount; +} + +static ULONG WINAPI transform_Release(IMFTransform *iface) +{ + struct video_encoder *encoder = impl_from_IMFTransform(iface); + ULONG refcount = InterlockedDecrement(&encoder->refcount); + + TRACE("iface %p decreasing refcount to %lu.\n", encoder, refcount); + + if (!refcount) + { + if (encoder->attributes) + IMFAttributes_Release(encoder->attributes); You can remove the if.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/5879#note_73695