1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

how to prevent memory leaks

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

  1. Levi

    Levi Skeleton

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

    Levi Skeleton

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

    Primus Zombie Pigman

    Messages:
    749
  4. Levi

    Levi Skeleton

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

    Primus Zombie Pigman

    Messages:
    749
    Without a doubt.
     
  6. Levi

    Levi Skeleton

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

    Primus Zombie Pigman

    Messages:
    749
    It is yes. No need to hold reference for an old object. Let garbage collector take it.
     
  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.