Skip to content

Memory Leak #3

@ghost

Description

This is a fantastic class and I've been using it in the development of my game Epic Eric. I have noticed a rather large memory leak however due to the timers and transitions not being removed from allTimers and allTransitions. Adding this snippet into the cancel() method fixes it:

for k,v in pairs(allTimers) do
if(allTimers[k] == self)then
tRemove(allTimers, k)
end
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions