-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Conversation
Codecov Report
@@ 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
|
|
||
return () => { | ||
canvasInstance.html().removeEventListener('canvas.zoom', geometryListener); | ||
canvasInstance.html().removeEventListener('canvas.fit', geometryListener); | ||
canvasInstance.html().addEventListener('canvas.reshape', geometryListener); |
There was a problem hiding this comment.
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
There was a problem hiding this 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?
Let's merge. I do not think these changes may affect somehow rest api tests |
Motivation and context
How has this been tested?
Checklist
develop
branch(cvat-canvas,
cvat-core,
cvat-data and
cvat-ui)
License
Feel free to contact the maintainers if that's a concern.