Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed object states memory leak #6984

Merged
merged 5 commits into from
Oct 12, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 ObjectStates memory leak
bsekachev marked this conversation as resolved.
Show resolved Hide resolved
(<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);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably it was the mistake. We need removeEventListener here. No need to change other things

canvasInstance.html().removeEventListener('canvas.reshape', geometryListener);
};
}

Expand Down
Loading