You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my plugin that has an async implementation, when using IntelOrcas' async nextTick implementation with a ES5 polyfill for promises, calling dispose isn't enough to free the memory, and it leaks.
Operating System
Macos
OpenRCT2 build
0.4.10
Base game
RollerCoaster Tycoon 2
Area(s) with this issue?
This is a development issue
Describe the issue
In my plugin that has an async implementation, when using IntelOrcas' async nextTick implementation with a ES5 polyfill for promises, calling dispose isn't enough to free the memory, and it leaks.
Here's the original suggested implementation, and mine that explicity sets the handle to undefined (fixes the issue).
I wonder if it's something to do with the Promise/async polyfill>JS transpilation, because I don't think this is always an issue.
Steps to reproduce
This plugin release leaks memory, where I believe the newest has fixed the problem by explicitly setting the handle to undefined.
Attachments
No response
The text was updated successfully, but these errors were encountered: