Fixing the mistakes Sergey just pointed out : http://cr.openjdk.java.net/~prr/8072433/ I marked these no-reg clean up as both are not easily reachable by tests. One being in the case we de-register bad fonts, the other in a manual print dialog -phil.