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
petebacondarwin wants to merge 2 commits into
angular:v1.2.xfrom
petebacondarwin:pr9079-1.2.x
Closed

petebacondarwin wants to merge 2 commits into
angular:v1.2.xfrom
petebacondarwin:pr9079-1.2.x

Conversation

@petebacondarwin

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

@lgalfaso - can you give this a quick check?

@lgalfaso

Copy link
Copy Markdown
Contributor

LGTM

@petebacondarwin

Copy link
Copy Markdown
Contributor Author

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

@petebacondarwin

Copy link
Copy Markdown
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