mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 00:37:47 +00:00
Merge pull request #2346 from mcginty/thumbnail-early-recycle
fix early recycling of thumbnail
This commit is contained in:
commit
778b8b490c
@ -92,9 +92,7 @@ public class MediaUtil {
|
||||
}
|
||||
|
||||
public InputStream toDataStream() {
|
||||
InputStream jpegStream = BitmapUtil.toCompressedJpeg(bitmap);
|
||||
bitmap.recycle();
|
||||
return jpegStream;
|
||||
return BitmapUtil.toCompressedJpeg(bitmap);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user