Restarting a resource leaks memory

Restarting a resource doesn’t free the memory of the resource, this happens for Lua and JS (though a lot more noticeable for JS)

Repo is pretty simple, just restart a resource.

Here’s something that spams resource restart

add_ace resource.resource-restarter command.ensure allow
add_ace resource.resource-restarter command.start allow
add_ace resource.resource-restarter command.stop allow

https://cdn.discordapp.com/attachments/779739477642838036/936303161243734137/resource-restarter.7z

ETW during the spam restarts:
https://cdn.discordapp.com/attachments/779739477642838036/936963793601327184/2022-01-29_06-28-48_Skaggs_FXServer_heap.7z

1 Like