Skip to content

m_predicate in Display.java causes a memory leak when overriding Display #2

@Protuhj

Description

@Protuhj

When trying to clean up my memory when using the a class that overrides Display (we use prefuse in an MDI environment), I was seeing that my classes were still held in memory, due to m_predicate in Display.java holding on to my class' reference.

To fix it, I added a method in AbstractExpression.java: removeAllExpressionListeners() that just clears m_listeners, and then call that method when I am cleaning up my Display.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions