1 Jul
2025
1 Jul
'25
9:30 a.m.
Jacek Caban (@jacek) commented about dlls/urlmon/zone_id.c:
+ PersistentZoneIdentifier *This = impl_from_IUnknown(iface); + LONG ref = InterlockedIncrement(&This->ref); + + TRACE("(%p) ref=%ld\n", This, ref); + + return ref; +} + +static ULONG WINAPI PZIUnk_Release(IUnknown *iface) +{ + PersistentZoneIdentifier *This = impl_from_IUnknown(iface); + LONG ref = InterlockedDecrement(&This->ref); + + TRACE("(%p) ref=%ld\n", This, ref); + + if (!ref) { URLMON_UnlockModule(); } We should also free the object here.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/8456#note_108476