Fix BSTR memory leaks.