Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

fix($compile): Resolve various potential memory leaks (v1.2.x) #9326

Closed
wants to merge 2 commits into from

Conversation

petebacondarwin
Copy link
Contributor

This is basically a backport of #9079 to the stable branch.

Stop an asynchronous compilation when this is performed on an
already destroyed scope

Closes angular#9199
Closes angular#9079
Closes angular#8504
Closes angular#9197
@petebacondarwin
Copy link
Contributor Author

@lgalfaso - can you give this a quick check?

@lgalfaso
Copy link
Contributor

LGTM

@petebacondarwin
Copy link
Contributor Author

:-( travis doesn't like this...

@petebacondarwin
Copy link
Contributor Author

I believe the problem is that in 1.2.x our jqLite allows us to attach data to comment nodes. This allows us to set up the $destroy handlers inside the createBoundController function. But JQuery doesn't allow this so the handlers don't get attached. There is a fix in 1.3.0 but it is a breaking change so can't work here...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants