diff options
Diffstat (limited to 'remoting/protocol/jingle_session.cc')
-rw-r--r-- | remoting/protocol/jingle_session.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/remoting/protocol/jingle_session.cc b/remoting/protocol/jingle_session.cc index 21f8426..ef0dfad 100644 --- a/remoting/protocol/jingle_session.cc +++ b/remoting/protocol/jingle_session.cc @@ -71,6 +71,7 @@ JingleSession::~JingleSession() { state_change_callback_.Reset(); Close(); jingle_session_manager_->SessionDestroyed(this); + DCHECK(channel_connectors_.empty()); } void JingleSession::Init(cricket::Session* cricket_session) { @@ -90,9 +91,6 @@ void JingleSession::CloseInternal(int result, Error error) { if (state_ != FAILED && state_ != CLOSED && !closing_) { closing_ = true; - STLDeleteContainerPairSecondPointers(channel_connectors_.begin(), - channel_connectors_.end()); - // Tear down the cricket session, including the cricket transport channels. if (cricket_session_) { std::string reason; |