16 Jun
2023
16 Jun
'23
8:14 p.m.
Esme Povirk (@madewokherd) commented about dlls/uiautomationcore/uia_event.c:
assert(!event->event_map_entry);
SafeArrayDestroy(event->runtime_id); - uia_cache_request_destroy(&event->cache_req); + if (event->event_type == EVENT_TYPE_CLIENTSIDE) + { + uia_cache_request_destroy(&event->u.clientside.cache_req); + if (event->u.clientside.mta_cookie) + CoDecrementMTAUsage(event->u.clientside.mta_cookie); + } + else + IWineUiaNode_Release(event->u.serverside.node);
Is this going to work if uia_node_attach_event takes an error path and doesn't set this? -- https://gitlab.winehq.org/wine/wine/-/merge_requests/3066#note_35945