<AWT Dev> RFR: 8181139: Memory leak in awt_Font.cpp / AwtFont::Create
Philip Race
philip.race at oracle.com
Thu Nov 9 00:13:55 UTC 2017
Bug: https://bugs.openjdk.java.net/browse/JDK-8181139
Webrev : http://cr.openjdk.java.net/~prr/8181139/
if we aren't using / returning the awtFont C object we should free
(delete) it before returning
to avoid a leak in this theoretical situation.
The object has only just been allocated and doesn't have any clean up
that needs to be
done besides calling its C++ destructor.
[NB sending to awt-dev, not 2d-dev since this C++ Windows-specific class
is used only to
support Composite Logical Fonts on AWT GDI heavyweights .. ]
-phil.
More information about the awt-dev
mailing list