Is there an existing issue for this?
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior
Upon exiting a page that has a MediaElement, although calling the DisconnectHandler as recommended, MediaElement does not get removed.
Expected Behavior
MediaElement should be garbage collected.
Steps To Reproduce
- Open and run the solution from the reproduction repository
- Click the button to go to the second page where the memory element lives
- Click the back button to go to the main page
- Check gcdump vie heapview and search for MediaElement
Link to public reproduction project repository
https://github.com/cagriy/MemoryLeak9
Environment
- .NET MAUI CommunityToolkit Media Element: 5.0.0
- OS: iOS 18.1
- .NET MAUI: 9.0.21
Anything else?
No response
Is there an existing issue for this?
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior
Upon exiting a page that has a MediaElement, although calling the DisconnectHandler as recommended, MediaElement does not get removed.
Expected Behavior
MediaElement should be garbage collected.
Steps To Reproduce
Link to public reproduction project repository
https://github.com/cagriy/MemoryLeak9
Environment
Anything else?
No response