Closed msklywenn closed 3 years ago
Thanks for catching this @msklywenn. I've resolved this in master (https://github.com/heroiclabs/nakama-unity/commit/657a6a3dbd4519c9f95842075f71ed75e4e49ff1) and will incorporate it into the next release.
I'm getting this after updating to the latest version (3.4.1)
Since updating to 3.1.1 and/or using
UnityWebRequestAdapter
so that WebGL builds work, I have been randomly getting this error message:A Native Collection has not been disposed, resulting in a memory leak. Enable Full StackTraces to get more details.
Unfortunately, enabling full stack traces everywhere still wouldn't give me a callstack...
I searched the code for a bit and I think I nailed it down to a
UnityWebRequest
inUnityWebRequestAdapter
not being Disposed. I just addedwww.Dispose();
to the end of theSendRequest
coroutine and all seems fine now. I'm not exactly sure if that is the right spot though.