In 2009, the ICC indicted Sudanese President Omar Al Bashir for crimes against humanity in Darfur. He made numerable visits to Ethiopia for African Union summit meetings, although Ethiopia is not a state party to the Rome Statute.
But he visited numerous other countries who are. Including Djibouti, Uganda, Malawi and yes....South Africa. The same South Africa that is pressing genocide charges against Israel at the ICJ.