fix memory leak in spine