]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
After chasing a phantom for hours, it looks like it's simply the big images being...
authorJeremias Maerki <jeremias@apache.org>
Thu, 25 Aug 2005 14:26:28 +0000 (14:26 +0000)
committerJeremias Maerki <jeremias@apache.org>
Thu, 25 Aug 2005 14:26:28 +0000 (14:26 +0000)
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

test/java/org/apache/fop/visual/BatchDiffer.java

index d270e64114216e0955a739c8b2570b4f9aa0a24c..141dedd44e1d07c5d692b9a4016634736e9fac54 100644 (file)
@@ -201,7 +201,9 @@ public class BatchDiffer {
                     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;
@@ -252,7 +254,10 @@ public class BatchDiffer {
             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();
         }
     }