Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8282862

AwtWindow::SetIconData leaks old icon handles if an exception is detected

XMLWordPrintable

    • 9

      AwtWindow::SetIconData leaks the old icon handles in hOldIcon and hOldIconSm if CreateIconFromRaster raises an exception.

      Additionally, an exception is checked only after the first call to CreateIconFromRaster.


      This issue was found during code review
      https://github.com/openjdk/jdk/pull/7691#issuecomment-1062193614
      for another bug: JDK-8282628.

            rmahajan Rajat Mahajan
            aivanov Alexey Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: