* commit '55f8f12119ad2fbb6afcb7647a1a18f4aa86f0f5': Correctly free resouces bound to scripts when the scripts are deleted.