Leeds Rhinos got back to winning ways with a 26-22 win over Warrington Wolves in round six of Super League at AMT Headingley Stadium.