Ross McCormack's penalty earned Leeds a 1-1 draw against Ipswich in the Championship to stop a run of five straight defeats for the hosts.