Small fixes:
[fanfix.git] / src / be / nikiroo / fanfix / Main.java
index a61c5292d2e5a95076e03585856bd0254a444e13..42f3924daa811bdb1bb6e121d38c01b651bf828b 100644 (file)
@@ -351,6 +351,14 @@ public class Main {
                        }
                }
 
+               try {
+                       Instance.getTempFiles().close();
+               } catch (IOException e) {
+                       Instance.getTraceHandler()
+                                       .error(new IOException(
+                                                       "Cannot dispose of the temporary files", e));
+               }
+
                if (exitCode == 255) {
                        syntax(false);
                }
@@ -506,7 +514,7 @@ public class Main {
         * 
         * @return the exit return code (0 = success)
         */
-       private static int convert(String urlString, String typeString,
+       public static int convert(String urlString, String typeString,
                        String target, boolean infoCover, Progress pg) {
                int exitCode = 0;