Devolutions / MsRdpEx

Microsoft RDP Client Extensions
MIT License
178 stars 31 forks source link

fix missing AddRef on IUnknown extended properties #66

Closed awakecoding closed 1 year ago

awakecoding commented 1 year ago

Actually fix https://github.com/Devolutions/MsRdpEx/pull/65 properly

The issue was caused by missing AddRef when returning IUnknown objects to C# - when .NET disposed the COM object, it called Release(), which would cause the RefCount to go down to zero, and eventually freed the object.