Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Android] Add missing unsubscribe on activity destroy #13023

Merged
merged 1 commit into from
Dec 4, 2020

Conversation

kvpt
Copy link
Contributor

@kvpt kvpt commented Dec 2, 2020

Description of Change

When the activity is destroyed an event remain attached, if the application is a singleton this cause a memory leak of the activity.

Issues Resolved

Memory leak

API Changes

None

Platforms Affected

  • Android

Behavioral/Visual Changes

None

Before/After Screenshots

Not applicable

Testing Procedure

None

PR Checklist

  • Targets the correct branch
  • Tests are passing (or failures are unrelated)

When the activity is destroyed an event remain attached, if the application is a singleton this cause a memory leak of the activity.
@rmarinho
Copy link
Member

rmarinho commented Dec 4, 2020

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@rmarinho rmarinho merged commit 3fdffc0 into xamarin:4.8.0 Dec 4, 2020
@samhouts samhouts added this to the 4.8.0 milestone Dec 18, 2020
pictos pushed a commit to pictos/Xamarin.Forms that referenced this pull request Dec 30, 2020
When the activity is destroyed an event remain attached, if the application is a singleton this cause a memory leak of the activity.
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.

None yet

4 participants