In general leaving a gun in a car is a bad idea. Thieves often break into cars to steal whatever they can find.
Yes, a safe and other precautions would help, but why not be secure and carry on-body?
That isn't always an option...or may not be as good of an overall option as the car.