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

Unified Diff: media/base/media_log.cc

Issue 7584033: Fix memory leak in MediaLog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with trunk. Created 9 years, 4 months 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 | tools/heapcheck/suppressions.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/media_log.cc
diff --git a/media/base/media_log.cc b/media/base/media_log.cc
index 6bcbcd710bda8cbe9c8a44edd41ee030e116ebdc..af4e75bbd89964dfbca3de8782513744fbe4ec3d 100644
--- a/media/base/media_log.cc
+++ b/media/base/media_log.cc
@@ -6,6 +6,7 @@
#include "base/atomic_sequence_num.h"
#include "base/logging.h"
+#include "base/scoped_ptr.h"
namespace media {
@@ -55,6 +56,8 @@ MediaLogEvent* MediaLog::CreateEvent(MediaLogEvent::Type type) {
return event;
}
-void MediaLog::AddEvent(MediaLogEvent* event) {}
+void MediaLog::AddEvent(MediaLogEvent* event) {
+ scoped_ptr<MediaLogEvent> e(event);
+}
} //namespace media
« no previous file with comments | « no previous file | tools/heapcheck/suppressions.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698