Skip to content

[Bug] Disposed map entry elements keep listeners attached to the map #218

Open

Description

@dajiaohuang

On current master, MapEntryElement registers two anonymous listeners with its backing map in the constructor. dispose() removes the separate changeListener field, which is never registered, and does not remove the anonymous invalidation listener. When MapElementProvider removes an entry and the form disposes it, the map still retains callbacks that capture the removed element. Repeated key removal can therefore retain stale elements and accumulate listeners. Keep the registered listener instances and remove both from the map during disposal.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions