Skip to content
  • Marco Trevisan's avatar
    background: Use Garbage Collector to dispose background · a9234f76
    Marco Trevisan authored and Marco Trevisan's avatar Marco Trevisan committed
    The same Meta.Background could be used by multiple instances of background
    actors, and so should not be disposed when the actor using it is destroyed.
    
    Instead of calling `run_dispose` directly on it, just nullify the reference
    on destroy method, leaving the job of doing the proper disposition to the
    gabage collector that keeps the proper reference count on the Meta.Background.
    
    Fixes #501
    
    !558
    a9234f76