Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-10221 Resorce leak problems in JBossTools
  3. JBIDE-10228

org.jboss.tools.jst.css.dialog.widgets.ImageCombo has incorrect logik with Image dispose

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Done
    • Major
    • 3.3.0.M5
    • 3.3.0.M4
    • common
    • None

    Description

      line 226:

      public void add(String string, Image image) {
      ...
              if (image != null) {
                  newItem.setImage(image);                                     <----------- here you get image if it not null
              }
      
              newItem.addDisposeListener(new DisposeListener() {
                      public void widgetDisposed(DisposeEvent e) {
                          TableItem item = (TableItem) e.getSource();
                          item.getImage().dispose();                            <----------- here you dispose image in any case
                      }
                  });
      ...
      

      Attachments

        Activity

          People

            scabanovich Viacheslav Kabanovich (Inactive)
            vyemialyanchyk_jira Vitali Yemialyanchyk (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: