how to prevent memory leaks

Discussion in 'Development' started by Levi, Jul 31, 2020.

  1. Levi

    Levi Skeleton

    Messages:
    917
    GitHub:
    captainleviftw
    how to prevent memory leaks?
     
  2. Levi

    Levi Skeleton

    Messages:
    917
    GitHub:
    captainleviftw
    do i unset every array when players leave?
     
  3. Primus

    Primus Zombie Pigman

    Messages:
    408
  4. Levi

    Levi Skeleton

    Messages:
    917
    GitHub:
    captainleviftw
    ok so i should unset players from array when they leave?
     
  5. Primus

    Primus Zombie Pigman

    Messages:
    408
    Without a doubt.
     
  6. Levi

    Levi Skeleton

    Messages:
    917
    GitHub:
    captainleviftw
    is that yes sorry
     
    Primus likes this.
  7. Primus

    Primus Zombie Pigman

    Messages:
    408
    It is yes. No need to hold reference for an old object. Let garbage collector take it.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.