Daryl Horgan was the match-winner as the Chairboys overcame Leicester City in a pre-season friendly at Adams Park.