On Tue, 8 Mar 2022 20:47:45 GMT, Alexey Ivanov <aiva...@openjdk.org> wrote:
> You're right. The old icon handles in `hOldIcon` and `hOldIconSm` will be > leaked here if `CreateIconFromRaster` throws an exception. I've submitted [JDK-8282862](https://bugs.openjdk.java.net/browse/JDK-8282862): AwtWindow::SetIconData leaks old icon handles if an exception is detected ------------- PR: https://git.openjdk.java.net/jdk/pull/7691