Tilman Hausherr created PDFBOX-1707:
---------------------------------------

             Summary: Add dispose() when done with graphics
                 Key: PDFBOX-1707
                 URL: https://issues.apache.org/jira/browse/PDFBOX-1707
             Project: PDFBox
          Issue Type: Improvement
    Affects Versions: 1.8.3, 2.0.0
            Reporter: Tilman Hausherr
            Priority: Minor
         Attachments: JBIG2Filter.patch, PDXObjectImage.patch

Please add dispose() in
pdfbox\filter\JBIG2Filter.java
pdfbox\pdmodel\graphics\xobject\PDXObjectImage.java
as recommended by javadoc. Patches are attached.

                Graphics graphics = packedImage.getGraphics();
                graphics.drawImage(bi, 0, 0, null);
                graphics.dispose();

I've also added @override at some places. The problem is that not having it 
brings an additional yellow bar in netbeans at the right. Which prevents seeing 
the more important bars.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to