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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3
    • tbd
    • 8u20, 9, 18, 19
    • client-libs
    • 9

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: