KELOWNA, B.C. -- A former Mountie from Vernon, B.C., has been found guilty of two child pornography charges.

Ryan Hampton has also been found guilty in B.C. Supreme Court of six counts of breaching a court order for contacting his ex-wife.

Hampton's ex-wife, RCMP Const. Valerie Little, told a Kelowna, B.C., court that she found dozens of illegal images of girls and boys on his computer on a memory stick in 2013.

Hampton's lawyer told the court that the couple was headed for a divorce and she downloaded the images in a bid to frame her husband.

The court also heard the former Mountie was addicted to heroin, cocaine and alcohol at the time.

Hampton was suspended without pay almost immediately after his arrest in June 2013, and he later resigned.