How to destroy a matinee when an object is destroyed

Ok, show me the code you’re using to destroy the object.