Skip to content

Commit 42b5f71

Browse files
committed
Close ByteArrayInputStream when were done with it
1 parent e496220 commit 42b5f71

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

app/src/main/java/ie/macinnes/tvheadend/player/HtspExtractor.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,13 @@ public int read(ExtractorInput input, PositionHolder seekPosition) throws IOExce
113113
} catch (ClassNotFoundException e) {
114114
Log.w(TAG, "Class Not Found");
115115
} finally {
116+
try {
117+
if (inputStream != null) {
118+
inputStream.close();
119+
}
120+
} catch (IOException ex) {
121+
// Ignore
122+
}
116123
try {
117124
if (objectInput != null) {
118125
objectInput.close();

0 commit comments

Comments
 (0)