commit | b27ba911bf52f808bb315dd879bf7aaba93f61c1 | [log] [tgz] |
---|---|---|
author | Ronghua Wu <ronghuawu@google.com> | Mon Jan 05 11:55:45 2015 -0800 |
committer | Ronghua Wu <ronghuawu@google.com> | Mon Jan 05 11:58:20 2015 -0800 |
tree | 713bcbf1f5067bc3ccce0a7e8e20f14684ba3e56 | |
parent | ec5b666aa4d8ce941d2f9ac30a117091a158dd97 [diff] |
media: release decoder explicitly instead of relying on GC. Bug: 18835626 Change-Id: I6f5d7820ca4e936989e862b6812934942937dfa0
diff --git a/tests/tests/media/src/android/media/cts/NativeDecoderTest.java b/tests/tests/media/src/android/media/cts/NativeDecoderTest.java index aed0029..e7b08e9 100644 --- a/tests/tests/media/src/android/media/cts/NativeDecoderTest.java +++ b/tests/tests/media/src/android/media/cts/NativeDecoderTest.java
@@ -340,6 +340,10 @@ } } + for (int i = 0; i < codec.length; i++) { + codec[i].release(); + } + return trackbytes; }