Javaでメモリリークしないならなんでこういうドキュメントあるんすか?w
https://docs.oracle.com/javase/jp/8/docs/technotes/guides/troubleshoot/awt005.html