Fix BSTR memory leaks.

Switch to `CComBSTR`.

Thanks @kasper93.
Use `nullptr` instead of `0`.