Fix RoundRobin memory leak, close #1139