Skip to content

Commit

Permalink
Fixed object states memory leak (#6984)
Browse files Browse the repository at this point in the history
  • Loading branch information
klakhov authored Oct 12, 2023
1 parent 17bef4f commit a2d1c5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions changelog.d/20231012_095633_klakhov_fix_memory.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
### Fixed

- Fixed memory leak on client side when event listener was not removed together with its context
(<https://github.com/opencv/cvat/pull/6984>)
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default function IssueAggregatorComponent(): JSX.Element | null {
return () => {
canvasInstance.html().removeEventListener('canvas.zoom', geometryListener);
canvasInstance.html().removeEventListener('canvas.fit', geometryListener);
canvasInstance.html().addEventListener('canvas.reshape', geometryListener);
canvasInstance.html().removeEventListener('canvas.reshape', geometryListener);
};
}

Expand Down

0 comments on commit a2d1c5f

Please sign in to comment.