[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

     [ https://java.net/jira/browse/GLAZEDLISTS-587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

brands updated GLAZEDLISTS-587:
-------------------------------

    Fix Version/s: 1.11.0

> 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
>             Fix For: 1.11.0
>
>
> 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...