From: Zhiyi Zhang <zzhang(a)codeweavers.com> "4b1e53ce wintypes: Make a copy of the passed string in IPropertyValueStatics::CreateString." creates a copy. We should release the string in property_value_Release(). --- dlls/wintypes/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/wintypes/main.c b/dlls/wintypes/main.c index 02121194956..d5e74dc14b3 100644 --- a/dlls/wintypes/main.c +++ b/dlls/wintypes/main.c @@ -598,7 +598,11 @@ static ULONG STDMETHODCALLTYPE property_value_Release(IPropertyValue *iface) if (!refcount) { if (impl->value) + { + if (impl->type == PropertyType_String) + WindowsDeleteString(*(HSTRING *)impl->value); free(impl->value); + } free(impl); } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9200