Skip to content

Commit

Permalink
LottieCompositionFactory#fromZipStreamSyncInternal close FileOutputSt…
Browse files Browse the repository at this point in the history
…ream.
  • Loading branch information
vanniktech committed Aug 5, 2024
1 parent 1f77b78 commit efe214d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -567,8 +567,7 @@ private static LottieResult<LottieComposition> fromZipStreamSyncInternal(Context
String fileName = splitName[splitName.length - 1];
String fontFamily = fileName.split("\\.")[0];
File tempFile = new File(context.getCacheDir(), fileName);
FileOutputStream fos = new FileOutputStream(tempFile);
try {
try (FileOutputStream fos = new FileOutputStream(tempFile)) {
try (OutputStream output = new FileOutputStream(tempFile)) {
byte[] buffer = new byte[4 * 1024];
int read;
Expand Down

0 comments on commit efe214d

Please sign in to comment.