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.