Windows-rs: The SpellChecker sample appears to be leaking memory

Created on 16 Jun 2021  路  3Comments  路  Source: microsoft/windows-rs

It is my understanding that ISpellChecker::Suggest returns an IEnumString interface. The official documentation for the interface's IEnumString::Next method is a fair bit cryptic.

Under the premise that callers of IEnumString::Next do acquire ownership of the pointed-to memory, this section of code would need to be updated with a call to CoTaskMemFree (I guess) to free resources.

bug

All 3 comments

Should I prepare a pull request fixing those issues (both from the IEnumString iterator as well as the get_Replacement call)?

Thanks, that would be great!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rylev picture rylev  路  4Comments

rylev picture rylev  路  4Comments

ZCWorks picture ZCWorks  路  3Comments

ctaggart picture ctaggart  路  4Comments

rylev picture rylev  路  5Comments