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.

Reply via email to