Skip to content

Properly dispose request objects#20

Open
vape wants to merge 1 commit into
deltaDNA:masterfrom
vape:fix_request_memory_leak
Open

Properly dispose request objects#20
vape wants to merge 1 commit into
deltaDNA:masterfrom
vape:fix_request_memory_leak

Conversation

@vape

@vape vape commented Nov 2, 2021

Copy link
Copy Markdown

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

ariko-sp commented Jun 28, 2022

Copy link
Copy Markdown

why are u not using the using statement? @vape

@vape

vape commented Jun 28, 2022

Copy link
Copy Markdown
Author

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

@ariko-sp

ariko-sp commented Jun 28, 2022 via email

Copy link
Copy Markdown

@vape

vape commented Jun 28, 2022

Copy link
Copy Markdown
Author

@ariko-spaceplay you right.

@ariko-sp

ariko-sp commented Jul 13, 2022 via email

Copy link
Copy Markdown

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