On Wed, 10 Apr 2024 09:32:42 GMT, Tejesh R <t...@openjdk.org> wrote:

>> src/java.desktop/share/classes/sun/print/PathGraphics.java line 1155:
>> 
>>> 1153:                                                         
>>> resolutionImage.getHeight(null),
>>> 1154:                                                         
>>> BufferedImage.TYPE_INT_ARGB);
>>> 1155:         Graphics2D g2d = bufferedImage.createGraphics();
>> 
>> Should we dispose the Graphics2D obj ?
>
> I'm not sure whether we have to dispose it here at this context.

Since you are creating it locally, I guess you can dispose it.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/18187#discussion_r1559164403

Reply via email to