Menu

#4 Memory Leak of Single Instance of Modal

closed
nobody
2017-01-03
2014-08-01
Anonymous
No

Originally created by: dwmkerr

It seems the inputs.close is leaked. Use a memory leak tag on the created scope to see the issue.

Related

Tickets: #42

Discussion

  • Anonymous

    Anonymous - 2015-02-24

    Originally posted by: dwmkerr

    I am working on a simple application to show how to resolve memory leaks and during development of that application found that:

    https://github.com/dwmkerr/angular-modal-service/blob/master/src/angular-modal-service.js#L90

    may be the cause of this bug. Replacing $timeout with settimeout fixes the issues, however I think consumers would expect a digest after their code. So ideally we should cancel the timeout, hopefully this will fix the issue.

     
  • Anonymous

    Anonymous - 2015-02-27

    Ticket changed by: dwmkerr

    • status: open --> closed
     

Log in to post a comment.