The Last of Sheila (1973)
The Last of Sheila is a 1973 mystery film directed by Herbert Ross, written by Anthony Perkins and Stephen Sondheim, It stars Richard Benjamin, Dyan Cannon, James Coburn, James Mason, Ian McShane, Joan Hackett, and Raquel Welch.
More at Wikipedia.