Skip to content

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Feb 5, 2021

Fixes a memory leak in CdkDrag which prevented it from being cleaned up. The problem is that we keep track of all the instances in an array, but there was a typo in the cleanup logic which meant that the items would never be removed from the array.

Fixes #21818.

Fixes a memory leak in `CdkDrag` which prevented it from being cleaned up.
The problem is that we keep track of all the instances in an array, but there was a
typo in the cleanup logic which meant that the items would never be removed from
the array.

Fixes angular#21818.
@crisbeto crisbeto added P2 The issue is important to a large percentage of users, with a workaround target: patch This PR is targeted for the next patch release labels Feb 5, 2021
@google-cla google-cla bot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Feb 5, 2021
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

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

LGTM

@jelbourn jelbourn added the action: merge The PR is ready for merge by the caretaker label Feb 8, 2021
@mmalerba mmalerba merged commit 52aa210 into angular:master Feb 12, 2021
mmalerba pushed a commit that referenced this pull request Feb 12, 2021
…21821)

Fixes a memory leak in `CdkDrag` which prevented it from being cleaned up.
The problem is that we keep track of all the instances in an array, but there was a
typo in the cleanup logic which meant that the items would never be removed from
the array.

Fixes #21818.

(cherry picked from commit 52aa210)
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Mar 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement P2 The issue is important to a large percentage of users, with a workaround target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Drag-drop possible memory leak
3 participants