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

Fixed object states memory leak #6984

merged 5 commits into from
Oct 12, 2023

Conversation

klakhov
Copy link
Contributor

@klakhov klakhov commented Oct 11, 2023

Motivation and context

How has this been tested?

Checklist

  • I submit my changes into the develop branch
  • I have created a changelog fragment
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • I have linked related issues (see GitHub docs)
  • I have increased versions of npm packages if it is necessary
    (cvat-canvas,
    cvat-core,
    cvat-data and
    cvat-ui)

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.

@codecov
Copy link

codecov bot commented Oct 11, 2023

Codecov Report

Merging #6984 (8b55fbb) into develop (e699848) will increase coverage by 0.00%.
Report is 15 commits behind head on develop.
The diff coverage is 92.30%.

@@           Coverage Diff            @@
##           develop    #6984   +/-   ##
========================================
  Coverage    82.58%   82.58%           
========================================
  Files          360      360           
  Lines        38914    38927   +13     
  Branches      3570     3570           
========================================
+ Hits         32137    32149   +12     
- Misses        6777     6778    +1     
Components Coverage Δ
cvat-ui 77.61% <90.90%> (+<0.01%) ⬆️
cvat-server 87.15% <100.00%> (+<0.01%) ⬆️


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

Copy link
Member

@bsekachev bsekachev left a comment

Choose a reason for hiding this comment

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

Could you please add changelog line?

@bsekachev
Copy link
Member

Let's merge. I do not think these changes may affect somehow rest api tests

@bsekachev bsekachev merged commit a2d1c5f into develop Oct 12, 2023
31 of 32 checks passed
@github-actions github-actions bot mentioned this pull request Oct 12, 2023
@bsekachev bsekachev deleted the kl/fix-memory branch October 13, 2023 07:39
@github-actions github-actions bot mentioned this pull request Oct 13, 2023
mikhail-treskin pushed a commit to retailnext/cvat that referenced this pull request Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants