Index: talk/app/webrtc/androidtests/src/org/webrtc/VideoCapturerAndroidTest.java |
diff --git a/talk/app/webrtc/androidtests/src/org/webrtc/VideoCapturerAndroidTest.java b/talk/app/webrtc/androidtests/src/org/webrtc/VideoCapturerAndroidTest.java |
index 40e2fdb6008e650e792dc493ec52e3c50b5e83f6..3702feaf3cef8ef6b4faa551f6272d7e0dad2f6e 100644 |
--- a/talk/app/webrtc/androidtests/src/org/webrtc/VideoCapturerAndroidTest.java |
+++ b/talk/app/webrtc/androidtests/src/org/webrtc/VideoCapturerAndroidTest.java |
@@ -405,9 +405,11 @@ public class VideoCapturerAndroidTest extends ActivityTestCase { |
capturer.stopCapture(); |
- // Dispose source and |capturer|. |
+ // Dispose everything. |
track.dispose(); |
source.dispose(); |
+ factory.dispose(); |
+ |
// The pending frames should keep the JNI parts and |capturer| alive. |
assertFalse(capturer.isReleased()); |
@@ -426,7 +428,5 @@ public class VideoCapturerAndroidTest extends ActivityTestCase { |
// Check that frames have successfully returned. This will cause |capturer| to be released. |
assertTrue(capturer.isReleased()); |
- |
- factory.dispose(); |
} |
} |