Tool window contents are not properly disposed #7
Labels
bug
Something isn't working
documentation
Improvements or additions to documentation
initial plugin (explain merge conflict)
The tool window doesn't seem to be properly disposed once a merge conflict is resolved or aborted. This can potentially lead to memory leaks if the IDE is used for a long duration. Will need to also document how we should dispose of certain objects.
Example 1
ConflictRegion
instances fromfile1
are kept in memory whenever openfile2
, despite their nodes not being displayed on the tool window. The tree then instantiatesConflictRegion
instances for thefile2
and displays them. Once a merge conflict is completely resolved or aborted, theConflictRegions
still remain in memory.Example 2
After aborting or resolving a merge conflict, an instance of the tool window remains in memory. Upon triggering the merge conflict again, a new tool window instance is created while the previous one still remains in memory.
The text was updated successfully, but these errors were encountered: