Many thanks! That is very helpful. Just to confirm...

To destroy m_pSpeechStub, set m_pSpeechStub to NULL.

Assume we save the channel like this
std::shared_ptr<grpc::Channel> m_pChannel;
m_pChannel = grpc::CreateChannel(m_strResourceURI, m_pCreds);

To destroy m_pChannel, set m_pChannel to NULL after setting m_pSpeechStub 
to NULL.

To destroy m_pCreds, set m_pCreds to NULL after setting m_pChannel to NULL.

To destroy m_pCallCreds, set m_pCallCreds to NULL after setting m_pCreds to 
NULL.

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/ae5203b8-dbf6-443a-96ea-39e4ec6c5d80%40googlegroups.com.

Reply via email to