diff options
author | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-21 18:56:39 +0000 |
---|---|---|
committer | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-21 18:56:39 +0000 |
commit | 63717f068c78b0dffe610341f31b81b532872628 (patch) | |
tree | f35eea63fe4de6da072aff479698fd59fd4722d6 /remoting/protocol | |
parent | 420e5740babf87df0630964c42ca3c0d34a318c0 (diff) | |
download | chromium_src-63717f068c78b0dffe610341f31b81b532872628.zip chromium_src-63717f068c78b0dffe610341f31b81b532872628.tar.gz chromium_src-63717f068c78b0dffe610341f31b81b532872628.tar.bz2 |
Fix memory leak in JingleSessionTest.Connect and friends
Private key is cloned instead of transferred. This eliminates the leak in
JingleSessionTest.*.
BUG=70291
TEST=valgrind bot is green
Review URL: http://codereview.chromium.org/6317009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72164 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol')
-rw-r--r-- | remoting/protocol/jingle_session_manager.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/remoting/protocol/jingle_session_manager.cc b/remoting/protocol/jingle_session_manager.cc index 1ca26bd..ffd5141 100644 --- a/remoting/protocol/jingle_session_manager.cc +++ b/remoting/protocol/jingle_session_manager.cc @@ -288,7 +288,7 @@ void JingleSessionManager::OnSessionCreate( } JingleSession* jingle_session = JingleSession::CreateServerSession(this, certificate_, - private_key_.release()); + private_key_.get()); certificate_ = NULL; sessions_.push_back(make_scoped_refptr(jingle_session)); jingle_session->Init(cricket_session); |