Quantcast

[JIRA] (GLAZEDLISTS-587) Potential memory leak in DefaultEventSelectionModel

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[JIRA] (GLAZEDLISTS-587) Potential memory leak in DefaultEventSelectionModel

JIRA jira-no-reply@java.net
brands created GLAZEDLISTS-587:
----------------------------------

             Summary: Potential memory leak in DefaultEventSelectionModel
                 Key: GLAZEDLISTS-587
                 URL: https://java.net/jira/browse/GLAZEDLISTS-587
             Project: glazedlists
          Issue Type: Bug
          Components: swing
            Reporter: brands
            Assignee: brands


DefaultEventSelectionModel registers the SwingSelectionListener on the ListSelection in the constructor, but never removes it:
this.listSelection.addSelectionListener(new SwingSelectionListener());
As SwingSelectionListener is a private non-static class, this could lead to problems.

In the dispose method, the listener should be removed.




--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
Loading...