私はこのように見えるいくつかのコードを持っています:
_TypePtr spType = NULL;
. . . // host the CLR and populate that type
{
BSTR fullName;
spType->get_FullName(&fullName);
wprintf(L"Got type %s\n", fullName);
}
そのbstrを解放する必要がありますか?SysFreeString()を解放するにはどうすればよいですか?そうでない場合はなぜですか?