Jeffrey Smith (@whydoubt) commented about dlls/mmdevapi/devicetopology.c:
+static ULONG WINAPI DT_AddRef(IDeviceTopology *iface) +{
- struct device_topology *This = impl_from_IDeviceTopology(iface);
- ULONG ref = InterlockedIncrement(&This->ref);
- TRACE("(%p) new ref %lu\n", This, ref);
- return ref;
+}
+static ULONG WINAPI DT_Release(IDeviceTopology *iface) +{
- struct device_topology *This = impl_from_IDeviceTopology(iface);
- ULONG ref = InterlockedDecrement(&This->ref);
- TRACE("(%p) new ref %lu\n", This, ref);
- if (!ref)
HeapFree(GetProcessHeap(), 0, This);
```suggestion:-0+0 free(This); ```