Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properly dispose request objects #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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-spaceplay
Copy link

ariko-spaceplay 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-spaceplay
Copy link

ariko-spaceplay commented Jun 28, 2022 via email

@vape
Copy link
Author

vape commented Jun 28, 2022

@ariko-spaceplay you right.

@ariko-spaceplay
Copy link

ariko-spaceplay 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