Shadow of the Thin Man
(1941)

The jockey's death was accidental, he dropped a gun down the shower drain and it went off. Major Sculley killed Rainbow Benny to try and frame him for Whitey Barrow's murder.

Thanks Erin G!