fix memory leak
Merge pull request #3894 from rablwupei/spine_leak

[ci skip]fix memory leak in spine