From 0175d76c720fbaa7a4f0c0eb3ca7ce298dda3f95 Mon Sep 17 00:00:00 2001 From: "stefan@webrtc.org" Date: Fri, 25 Apr 2014 11:38:57 +0000 Subject: [PATCH] Fix leak in remote bitrate estimator tests introduced in r5980 R=pbos@webrtc.org Review URL: https://webrtc-codereview.appspot.com/18369004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5981 4adac7df-926f-26a2-2b94-8c16560cd09d --- .../remote_bitrate_estimator/remote_bitrate_estimators_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimators_test.cc b/webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimators_test.cc index 985ba7f236..6f121a916e 100644 --- a/webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimators_test.cc +++ b/webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimators_test.cc @@ -68,7 +68,7 @@ class DefaultBweTest : public BweTest, } virtual void TearDown() { - while (packet_senders_.empty()) { + while (!packet_senders_.empty()) { delete packet_senders_.front(); packet_senders_.pop_front(); }