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

Call Dispose on the VisualElementRenderer, rather than the Android View #14288

Merged
merged 1 commit into from
Jun 2, 2021

Conversation

hartez
Copy link
Contributor

@hartez hartez commented May 21, 2021

Description of Change

When switching to a new renderer for the ViewCell, Dispose() is called on the Android View but not on the IVisualElementRenderer itself.

This change calls Dispose on the IVisualElementRenderer, giving it an opportunity to handle full cleanup before it's released.

Issues Resolved

Possibly a memory leak or two.

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)

@hartez
Copy link
Contributor Author

hartez commented May 21, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@hartez
Copy link
Contributor Author

hartez commented May 26, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jsuarezruiz jsuarezruiz merged commit f0281c7 into 5.0.0 Jun 2, 2021
@jsuarezruiz jsuarezruiz deleted the viewcellrenderer-dispose branch June 2, 2021 15:05
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

2 participants