jirihybek / unity-websocket-webgl

Hybrid WebSocket implementation for Unity 3D with support of native and browser client.
Other
248 stars 61 forks source link

Free allocated memory in JSLIB #1

Closed jirihybek closed 6 years ago

jirihybek commented 6 years ago

Free allocated memory for messages passed to callbacks after they are called to prevent memory leaks.

Also, put Runtime.DynCall into try/catch/finally statements to free memory in any situation.