Skip to content

Conversation

@vape
Copy link

@vape vape commented Nov 2, 2021

Add missing dispose call. UnityWebRequest object must be disposed after request is completed, otherwise UploadHandler will keep its payload in memory forever and cause memory leak.

@vape vape changed the title Properly dispose request objects. Properly dispose request objects Nov 2, 2021
@ariko-sp
Copy link

ariko-sp commented Jun 28, 2022

why are u not using the using statement? @vape

@vape
Copy link
Author

vape commented Jun 28, 2022

@ariko-spaceplay well, both calling dispose and using statement is valid options. The only invalid is lack of either.

@ariko-sp
Copy link

ariko-sp commented Jun 28, 2022 via email

@vape
Copy link
Author

vape commented Jun 28, 2022

@ariko-spaceplay you right.

@ariko-sp
Copy link

ariko-sp commented Jul 13, 2022 via email

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.

2 participants