Fixed memory leak, clamped trees/torches