Haven't found any memory leaks inside FOP, since I fixed the image cache.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@240079
13f79535-47bb-0310-9956-
ffa450edef68
BufferedImage diff = BitmapComparator.buildDiffImage(bitmaps[0], bitmaps[k]);
outputFile = new File(targetDir, f.getName() + "._diff" + k + ".png");
saveAsPNG(diff, outputFile);
+ bitmaps[k] = null;
}
+ bitmaps[0] = null;
maxfiles = (maxfiles < 0 ? maxfiles : maxfiles - 1);
if (maxfiles == 0) {
break;
Thread.currentThread().setPriority(Thread.MIN_PRIORITY);
BatchDiffer differ = new BatchDiffer();
differ.runBatch(cfgFile);
+
+ System.out.println("Regular exit...");
} catch (Exception e) {
+ System.out.println("Exception caugth...");
e.printStackTrace();
}
}