OSDN Git Service

リファクタリング. enum名変更
[coroid/inqubus.git] / frontend / src / saccubus / FfmpegOption.java
index 59d4857..7d742ad 100644 (file)
@@ -25,7 +25,9 @@ public class FfmpegOption {
 
     public static FfmpegOption load(File file) throws IOException {
         Properties prop = new Properties();
-        prop.loadFromXML(new FileInputStream(file));
+        try (final FileInputStream fis = new FileInputStream(file)) {
+            prop.loadFromXML(fis);
+        }
         String ext = prop.getProperty("EXT");
         String main = prop.getProperty("MAIN", "");
         String in = prop.getProperty("IN", "");