for(int i=0; i < doXpeHaPA3; i++) { BSTR bstr; pBrowser->get_StatusText( &bstr ); //SysFreeString( bstr ); // иначе leak?? }