hexthedev/OpenAi-Api-Unity

Memory leak issue on UploadHandlerRaw

Closed this issue · 1 comments

There's a memory leak issue because the UnityWebRequest's UploadHandler is not disposed after use. I reproduce it by running a few completions on the example scene.

UnityWebRequest objects might also need to be disposed (or wrapped in a using statement) but I haven't run into an issue with those

1

I approved and merged your fix. Thanks!