Index: content/renderer/media/media_stream_video_source_unittest.cc |
diff --git a/content/renderer/media/media_stream_video_source_unittest.cc b/content/renderer/media/media_stream_video_source_unittest.cc |
index dfd0a4bc5089fc2f91b03bf03524281ec6e4ceec..c5fa2be02ef189381311c7f0fb882dba62f32644 100644 |
--- a/content/renderer/media/media_stream_video_source_unittest.cc |
+++ b/content/renderer/media/media_stream_video_source_unittest.cc |
@@ -18,6 +18,7 @@ |
#include "content/renderer/media/mock_media_stream_video_source.h" |
#include "media/base/video_frame.h" |
#include "testing/gtest/include/gtest/gtest.h" |
+#include "third_party/WebKit/public/web/WebHeap.h" |
using ::testing::_; |
using ::testing::DoAll; |
@@ -55,6 +56,11 @@ class MediaStreamVideoSourceTest |
webkit_source_.setExtraData(mock_source_); |
} |
+ virtual void TearDown() { |
+ webkit_source_.reset(); |
+ blink::WebHeap::collectAllGarbage(); |
+ } |
+ |
protected: |
// Create a track that's associated with |webkit_source_|. |
blink::WebMediaStreamTrack CreateTrack( |