Skip to content

Fix pauseTags Leak with pauseTag()/resumeTag()/cancelTag()#1601

Open
kwangsu61 wants to merge 2 commits intosquare:masterfrom
kwangsu61:pausedtags_leak
Open

Fix pauseTags Leak with pauseTag()/resumeTag()/cancelTag()#1601
kwangsu61 wants to merge 2 commits intosquare:masterfrom
kwangsu61:pausedtags_leak

Conversation

@kwangsu61
Copy link
Copy Markdown

If tag methods are called in the following order (ex. according to Activity Lifecycle)
resumeTag("TAG") => pauseTag("TAG") => cancelTag("TAG")

"Set pausedTags" in Dispatcher class still have tag object after cancelTag().
If tag is activity, activity leak occurs.

So I added to remove tag in pausedTags when cancelTag() is called.

Thanks

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.

1 participant