There , a judge threw out public corruption charges against Jacob Zuma , the deputy president of the African National Congress who had been former deputy president of South Africa and , until he became mired in scandal , Mr. Mbeki 's heir apparent .