STONINGTON — A man and his young daughter were both injured when the man’s handgun went off this morning in Stonington, police said.

The man, Ryan Matson, 38, was cleaning his .45 caliber handgun when it went off accidentally in his kitchen. He and his daughter, Riley Matson, were both shot in the leg and taken to Blue Hill Memorial Hospital. Police said the injuries were not life threatening.

Matson’s wife and another child were also at home, but were not injured.

Maine Department of Public Safety spokesman Stephen McCausland said no charges are expected.