Skip to content

Memory leak if one of the images is not loaded #124

Description

@d-u-a-l

It's in base.imagesLoaded function

ic = ('fileSize' in t[i] && t[i].fileSize < 0 && t[i].count > 10) ? true : t[i].complete;

must be like

ic = (('fileSize' in t[i] && t[i].fileSize < 0) || t[i].count > 10) ? true : t[i].complete;

because in your case ic would never be true, even after 10 iterations it would be t[i].complete, which is false, because img is not loaded

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions