Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(373)

Unified Diff: webrtc/modules/video_coding/packet_buffer.h

Issue 2535203002: Fix memory leak in video_coding::PacketBuffer::InsertPacket. (Closed)
Patch Set: Fixed ownership Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/modules/video_coding/packet_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/video_coding/packet_buffer.h
diff --git a/webrtc/modules/video_coding/packet_buffer.h b/webrtc/modules/video_coding/packet_buffer.h
index 36b302715858b584a5d9f7922b70e125e022fa59..9aa3db11c85cfcfc7ca0cd77e2094761030c922d 100644
--- a/webrtc/modules/video_coding/packet_buffer.h
+++ b/webrtc/modules/video_coding/packet_buffer.h
@@ -50,7 +50,7 @@ class PacketBuffer {
// Returns true if |packet| is inserted into the packet buffer,
// false otherwise. Made virtual for testing.
- virtual bool InsertPacket(const VCMPacket& packet);
+ virtual bool InsertPacket(VCMPacket* packet);
nisse-webrtc 2016/11/29 12:31:40 Please comment on the ownership convention. As far
philipel 2016/11/29 12:40:23 Done.
void ClearTo(uint16_t seq_num);
void Clear();
« no previous file with comments | « no previous file | webrtc/modules/video_coding/packet_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698