On one hand I love that someone actually gave a damn about the dog and did, essentially, the right thing. But taking him/her to the police station... And how exactly did they do that? By breaking into the car? That's not right at all.

I think it would have been better to call animal services and say you're worried about the well being of a dog in a car. Then I would have stayed with him/her.