26 Sep
2023
26 Sep
'23
7:05 p.m.
Esme Povirk (@madewokherd) commented about dlls/uiautomationcore/uia_event.c:
+ *obj = iface; + else + return E_NOINTERFACE; + + return S_OK; +} + +static ULONG WINAPI ProxyEventSink_AddRef(IProxyProviderWinEventSink *iface) +{ + return 2; +} + +static ULONG WINAPI ProxyEventSink_Release(IProxyProviderWinEventSink *iface) +{ + return 1; +} I'm not sure that leaving out refcounting here is safe. It wouldn't make much sense, but I don't see any reason the IProxyProvider couldn't addref and save this object past the event lifetime.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/3956#note_46844