Describe the bug
In the TaggerView of the Annotate Module on loading a Document a CommentListener is registered in Hazelcast for the Comments-Topic on that Document. That CommentListener keeps registered even after closing the TaggerView. Since the CommentListener maintains a reference on the Project itself, the whole Project is kept from being GCed after closing the Project.
To Reproduce
Steps to reproduce the behavior:
Check instance count of GraphWorkTreeProject
Open a Project
Open a Document
Close Project
Check instance count of GraphWorkTreeProject
Expected behavior
Instance count should be the same as before opening the Project.
Describe the bug In the TaggerView of the Annotate Module on loading a Document a CommentListener is registered in Hazelcast for the Comments-Topic on that Document. That CommentListener keeps registered even after closing the TaggerView. Since the CommentListener maintains a reference on the Project itself, the whole Project is kept from being GCed after closing the Project.
To Reproduce Steps to reproduce the behavior:
Expected behavior Instance count should be the same as before opening the Project.