在 2023-06-16 17:27, Jøger Hansegård via Mingw-w64-public 写道:
Microsoft::WRL::ComPtr::Attach should take ownership of an interface and
must therefore not increment the reference count of the attached
interface pointer.

This patch fixes this issue, and makes the MINGW64 implementation
behave the same way as the implementation shipped with the Microsoft
SDK.

Fixes: #892 Microsoft::WRL::ComPtr::Attach leaks references
Signed-off-by: Jøger Hansegård<[email protected]>
---
  mingw-w64-headers/include/wrl/client.h | 1 -
  1 file changed, 1 deletion(-)

Apologies for this so obvious mistake, and, thanks for the patch. Pushed to 
master now.


--
Best regards,
LIU Hao

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to