Index: webrtc/modules/audio_coding/neteq/neteq_impl_unittest.cc |
diff --git a/webrtc/modules/audio_coding/neteq/neteq_impl_unittest.cc b/webrtc/modules/audio_coding/neteq/neteq_impl_unittest.cc |
index d520301c0d99f1c8780d17d9e258c10de8321423..517893894755b8c5fa0f9ba22b9ed9c80461993e 100644 |
--- a/webrtc/modules/audio_coding/neteq/neteq_impl_unittest.cc |
+++ b/webrtc/modules/audio_coding/neteq/neteq_impl_unittest.cc |
@@ -52,7 +52,7 @@ namespace webrtc { |
// buffer. The purpose is to delete all inserted packets properly, to avoid |
// memory leaks in the test. |
int DeletePacketsAndReturnOk(PacketList* packet_list) { |
- PacketBuffer::DeleteAllPackets(packet_list); |
+ packet_list->clear(); |
return PacketBuffer::kOK; |
} |