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

fix(nbIsGranted): prevent subscription memory leak #2087

Merged
merged 2 commits into from
Nov 20, 2019

Conversation

drumonii
Copy link
Contributor

In order to prevent a memory leak in NbIsGrantedDirective, properly unsubscribe from the NbAccessChecker's isGranted subscription using a Subject and takeUntil operator.

Please read and mark the following check list before creating a pull request:

Short description of what this resolves:

Resolves #1385

In order to prevent a memory leak in NbIsGrantedDirective, properly unsubscribe from the NbAccessChecker isGranted subscription using a Subject and takeUntil operator.
Copy link
Contributor

@yggg yggg left a comment

Choose a reason for hiding this comment

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

Thanks @drumonii 👍

@drumonii
Copy link
Contributor Author

@yggg If you'd like, I can only take on the similar issue #1059 once this has been merged.

@yggg
Copy link
Contributor

yggg commented Nov 20, 2019

@drumonii That would be great. I've added one more thing to do in the scope of #1059 (see the last #1059 (comment)). If you have any comments or suggestion, let's move further discussion there.

@yggg yggg changed the title fix(nbIsGranted): subscription memory leak fix(nbIsGranted): prevent subscription memory leak Nov 20, 2019
@yggg yggg merged commit 2084356 into akveo:master Nov 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Memory leak in nbIsGranted
2 participants