The person who breaks the window is protected from civil or criminal liability providing they contact law enforcement before breaking the window, or as soon as it's practical, have a "good faith and reasonable belief" that entering the vehicle is necessary because the child or animal is in imminent danger and remain at the scene until law enforcement arrives.