Skip to content
Snippets Groups Projects
Commit c5816725 authored by Shawn Pearce's avatar Shawn Pearce
Browse files

Ensure RawText closes the FileInputStream when read is complete


Rather than implementing the file reading logic ourselves, and
wind up leaking the FileInputStream's file descriptor until the
next GC, use IO.readFully(File) which wraps the read loop inside
of a try/finally to ensure the stream is closed before it exits.

Change-Id: I85a3fe87d5eff88fa788962004aebe19d2e91bb4
Signed-off-by: default avatarShawn O. Pearce <spearce@spearce.org>
Reviewed-by: default avatarRoland Grunberg <rgrunber@redhat.com>
parent 0e137c4d
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment