]> granicus.if.org Git - libjpeg-turbo/commitdiff
Move the garbage collection of the JPEG tiles into the decompression function to...
authorDRC <dcommander@users.sourceforge.net>
Mon, 17 Mar 2014 10:13:17 +0000 (10:13 +0000)
committerDRC <dcommander@users.sourceforge.net>
Mon, 17 Mar 2014 10:13:17 +0000 (10:13 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1180 632fc199-4ca6-4c93-a231-07263d6284db

1  2 
java/TJBench.java

index 7df0ce2df59c0250c5e5a7f3c151f21b40ec788e,9bee6ee28702158b0f598e9fc83014418d3148fd..e0ca14876d576ce91ba460a58d0f30e40cbe3f0d
@@@ -426,15 -401,9 +429,10 @@@ class TJBench 
        }
  
        /* Decompression test */
 -      decompTest(srcBuf, jpegBuf, jpegSize, tmpBuf, w, h, subsamp, jpegQual,
 -                 fileName, tilew, tileh);
 +      if (!compOnly)
 +        decompTest(srcBuf, jpegBuf, jpegSize, tmpBuf, w, h, subsamp, jpegQual,
 +                   fileName, tilew, tileh);
  
-       for (i = 0; i < ntilesw * ntilesh; i++)
-         jpegBuf[i] = null;
-       jpegBuf = null;  jpegSize = null;
-       System.gc();
        if (tilew == w && tileh == h) break;
      }
    }