Fix BSTR memory leaks.

Switch to `CComBSTR`.

Thanks @kasper93.