Fix a memory leak in Boss class