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

Potential leak icon handles in AwtWindow::SetIconData()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 19
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:

      Description

      The method assigns m_hIcon and m_hIconSm to local variables, then reset them to NULL. If an exception is raised from CreateIconFromRaster(), JNU_CHECK_EXCEPTION() will result an early return with destroying cached icon handles.

      There is a discussion in following PR:
      https://github.com/openjdk/jdk/pull/7691

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              zgu Zhengyu Gu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: