Esme Povirk (@madewokherd) commented about dlls/uiautomationcore/uia_com_client.c:
+static ULONG WINAPI uia_or_condition_Release(IUIAutomationOrCondition *iface) +{
- struct uia_or_condition *uia_or_condition = impl_from_IUIAutomationOrCondition(iface);
- ULONG ref = InterlockedDecrement(&uia_or_condition->ref);
- TRACE("%p, refcount %ld\n", uia_or_condition, ref);
- if (!ref)
- {
if (uia_or_condition->child_ifaces)
heap_free(uia_or_condition->child_ifaces);
if (uia_or_condition->condition.ppConditions)
heap_free(uia_or_condition->condition.ppConditions);
heap_free(uia_or_condition);
- }
This should Release the child interfaces, I think.