Destroy previous offer instead of leaking it in PeerConnectionInterfaceTest.ExtmapAllowMixedIsConfigurable
Bug: None Change-Id: I41626e1ff3b13734509e83ead13eed5d85828503 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/203884 Reviewed-by: Per Kjellander <perkj@webrtc.org> Commit-Queue: Artem Titov <titovartem@webrtc.org> Cr-Commit-Position: refs/heads/master@{#33071}
This commit is contained in:
parent
0a03ed8492
commit
4f3a2eba6b
@ -3908,7 +3908,7 @@ TEST_P(PeerConnectionInterfaceTest, ExtmapAllowMixedIsConfigurable) {
|
|||||||
// Possible to set to false.
|
// Possible to set to false.
|
||||||
config.offer_extmap_allow_mixed = false;
|
config.offer_extmap_allow_mixed = false;
|
||||||
CreatePeerConnection(config);
|
CreatePeerConnection(config);
|
||||||
offer.release();
|
offer = nullptr;
|
||||||
ASSERT_TRUE(DoCreateOffer(&offer, nullptr));
|
ASSERT_TRUE(DoCreateOffer(&offer, nullptr));
|
||||||
EXPECT_FALSE(offer->description()->extmap_allow_mixed());
|
EXPECT_FALSE(offer->description()->extmap_allow_mixed());
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user