Skip to content

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

@Jesright73

Description

@Jesright73

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working the way it should

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions