mapbox-unity-sdk
mapbox-unity-sdk copied to clipboard
Fixed memory leak
Unity Web Request UploadHandler isn't disposed correctly, resulting memory leak. There is no code for signaling that the UploadHandler is no longer used and cleaning up the resources it is using. I am working on example scene "ZoomableMap" for my project. It happened with Unity 2021.1.5f1, Unity 2019.4.29f1 and mobile devices also, all results memory leak and crashes when start playing (90 % of times).

Description of changes
Added code to dispose UploadHandler
Reviewers
@abhishektrip @brnkhy