Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible memory leak: majority of ds_lists are not destroyed #126

Open
Jesright73 opened this issue Oct 17, 2023 · 0 comments
Open

Possible memory leak: majority of ds_lists are not destroyed #126

Jesright73 opened this issue Oct 17, 2023 · 0 comments
Labels
bug Something isn't working the way it should

Comments

@Jesright73
Copy link
Contributor

In nearly every script with var list = ds_list_create(), there is no call to destroy it. Instead, they end in either ds_list_clear(list) or ds_list_empty(list). Being a local variable, list receives a new id every time it is declared; thusly, every ds_list assigned to it (that is not destroyed at the end of the script), is kept in memory forever (until the game closes).
This could be a contributor to a small portion of the memory leaks.

@Jesright73 Jesright73 added the bug Something isn't working the way it should label Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working the way it should
Projects
None yet
Development

No branches or pull requests

1 participant