Commit 63717f06 authored by hclam@chromium.org's avatar hclam@chromium.org

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
parent 420e5740
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment