fix(windows): release remaining WinRT resources#455
Conversation
|
I also asked for fixes for winRT. this was its response: Memory Leaks Remaining in
|
|
@report02 Can you submit a pull request to the win-rt library ? Or give me a .patch file that I can use to patch my winrt library ? I can run the test (you can too). Simply add a replace directive in your go.mod to point to your locally patched version of winrt-go and you might be able to check if those assessments are true. Without the actual fix/patch from your agents we can say for sure that those are actually true. |
Summary
Follow-up to #453.
This PR fixes additional leaked WinRT/COM resources in the Windows implementation by adding missing
Release()calls in several GATT server, GATT client, and advertisement code paths.Changes
gatts_windows.goGattServiceProviderCreateAsyncoperations after useGattServiceProviderResultobjects after extracting the providerGattWriteRequest/GattReadRequestobjects after useCreateCharacteristicAsyncgattc_windows.gogap_windows.goNotes
Testing