Samuel L. Devine, 81, an Ohio Republican who served in the U.S. House of Representatives from 1959 to 1981, died June 27 at his home in Upper Arlington, Ohio. He had cancer.

During his years in Congress, Mr. Devine became the ranking Republican member of the powerful Commerce, Transportation and Energy Committee. In 1979, the conservative congressman was elected chairman of the House Republican Conference, the third-ranking Republican House leadership post.

In 1980, in what observers termed a major upset, he was defeated for reelection by Bob Shamansky (D), a wealthy lawyer and real estate investor who spent $90,000 of his own money in a last-minute radio blitz. Mr. Devine, who had defeated Shamansky by a nearly 2 to 1 ratio in 1966, did not campaign aggressively. He received 47 percent of the 1980 vote, while Shamansky received 53 percent.

Mr. Devine represented Ohio's 12th District in the House, an area that included part of the state's capital, Columbus, as well as part of Franklin County to the city's east. It also included the more rural Morrow and Delaware counties.

Mr. Devine was born in South Bend, Ind., and grew up in the Columbus area. He attended Colgate and Ohio State universities and received two law degrees from the University of Notre Dame. He entered into the private practice of law in Columbus in 1940.

Later in 1940, he became a special agent with the Federal Bureau of Investigation. During World War II, he worked on counterespionage and anti-sabotage activities and served as a liaison officer between the FBI and the Office of Naval Intelligence. He left the FBI in 1945 to return to the private practice of law.

He served in the Ohio state House of Representatives from 1951 to 1955, then spent three years as Franklin County prosecutor before winning election to Congress in 1958. He also was a past chairman of the Ohio Un-American Activities Commission and had been a college football official for 27 years. WILLIAM LEONHART Former Ambassador to Tanzania

William Leonhart, 78, a retired Foreign Service officer who served as the first U.S. ambassador to Tanzania when the East African nation gained independence from Britain in 1961, died of cardiovascular disorder June 26 at his home in Washington.

Mr. Leonhart was ambassador to Tanganyika, which later changed its name to Tanzania, from 1962 to 1965. He was ambassador to what was then Yugoslavia from 1969 to 1972.

He also served as special assistant to the president from 1966 to 1968, and as deputy commandant for international affairs at the National War College from 1972 to 1975. He was a founding vice president of the National Defense University.

He retired from the Foreign Service in 1979 and served as chairman of the Senior Review Panel of the Central Intelligence Agency until 1991.

Mr. Leonhart, a West Virginia native, was a graduate of West Virginia University and received master's and doctoral degrees in politics from Princeton University.

He came to Washington in the early 1940s, working as executive assistant to Nelson Rockefeller, who was coordinator of inter-American affairs at the State Department.

Mr. Leonhart served in the Army Air Forces during World War II before joining the Foreign Service in 1946. Over the years, his assignments took him to Rome, Cambodia, Vietnam, Laos, London and Tokyo.

His honors include the Secretary of Defense Meritorious Civilian Service Award, the Department of State Superior Honor Award and West Virginia Man of the Year in 1968.

He was a member of the Federal City, Princeton and Metropolitan clubs of Washington and a founding member of the International Institute of Strategic Studies.

Survivors include his wife of 53 years, Florence Leonhart of Washington; two daughters, Debra Lott of Arlington and Victoria Trefts of London; and four grandchildren. WILSON MATTHEWS Civil Service Official

Wilson Matthews, 65, a retired official of the old Civil Service Commission who had been active in the Lutheran Church in Northern Virginia, died of cancer June 25 at Vencor Hospital in Arlington. He lived in Alexandria.

Mr. Matthews, a lawyer by training, joined the commission in Washington in 1940 and became director of its office of hearing examiners and director of its voting rights program before retiring in 1971. During part of his civil service career, he also served as selection board secretary of the White House Fellows program.

He was a member of Resurrection Lutheran Church in Arlington. He had served on the executive board of the Virginia Synod of the Lutheran Church in America, was a member of the board of the Lutheran Resources Commission in Washington and was personnel committee chairman of the Lutheran Church in America.

Mr. Matthews, an Ohio native, was a 1940 graduate of what is now George Washington University law school.

During World War II, he served in the Pacific with the Office of Naval Intelligence and achieved the rank of lieutenant commander.

He began his government career in 1930 as a civilian messenger and aide to Army Gen. Henry "Hap" Arnold, who later was head of the Army Air Forces and then the U.S. Air Force. Mr. Matthews came to Washington in 1937.

He was a member of the American Bar Association.

Survivors include his wife of 60 years, Pauline Click Matthews of Alexandria; a son, the Very Rev. Larry Matthews of Rockford, Ill.; and a granddaughter. ANN FREDERICKS Woodward & Lothrop Employee

Ann Fredericks, 80, who was a Washington sales associate with the Woodward & Lothrop department stores in the early 1970s, died of congestive heart failure June 25 in Alexandria at the Mount Vernon nursing home, where she had spent the last two years. She lived in Alexandria.

Mrs. Fredericks, a West Virginia native, came to the Washington area and settled in Alexandria in 1963.

Her marriage to Clyde Fredericks ended in divorce.

Survivors include two daughters, Claudia Sherman of Alexandria and Cindy Krushat of Palm Springs, Calif.; three grandchildren; and four great-grandchildren. GEORGE A. MORGAN Diplomat

George A. Morgan, 91, a retired Foreign Service officer whose career included tours as ambassador to the Ivory Coast and director of the State Department's Foreign Service Institute, died June 24 at a hospital in Gainesville, Fla.

He died of head injuries sustained in an accidental fall during a daily walk 16 days earlier. He had lived in Gainesville since 1979.

Mr. Morgan was the ambassador to the Ivory Coast from 1965 until his retirement from the Foreign Service in 1969. He spent the next 10 years in Austria working on a book, "Speech and Society: The Christian Linguistic Social Philosophy of Eugen Rosenstock-Huessy," which was published in 1987.

He was born in Murfreesboro, Tenn. He graduated from Emory University and received master's and doctoral degrees in philosophy from Harvard University.

After teaching philosophy at Harvard, Hamilton College and Duke University, Mr. Morgan served as an infantryman in the Army during World War II and was awarded a Bronze Star.

After his military discharge, he began a career as a diplomat that included assignments as first secretary at the U.S. Embassy in Moscow, deputy executive officer of the National Security Council Planning Board and political counselor in Japan.

He was a member of the Cosmos Club.

His marriage to Francesca Greene Morgan ended in divorce. His second wife, Margaret R.T. Morgan, died in 1988.

Survivors include two children from his second marriage, Anne M.B. Morgan and Gael A.T. Morgan, both of Gainesville; a son from his first marriage, John S.C. Morgan of Newton, Mass.; and a granddaughter. NESTOR C. ORTIZ Oil Executive

Nestor C. Ortiz, 83, a retired international affairs director of Gulf Oil and a former State Department Foreign Service officer, died June 25 at the Powhatan nursing home in Falls Church after a stroke. An Alexandria resident, he had been in the Powhatan for the last year and a half.

Dr. Ortiz came to Washington and began his government career in 1940 with the Treasury Department. He then transferred to the State Department, spending World War II in Brazil working on foreign-funds-control projects.

His postwar assignments included work in London helping to establish NATO's petroleum planning board, working on U.S.-Latin American relations involving the Export-Import Bank and serving as a petroleum attache in Middle East countries.

He retired from the State Department in 1958 and then worked for Gulf Oil in Washington until retiring again in 1978.

He was a member of the University and Mount Vernon country clubs. He spoke seven languages and was interested in sports, classical music and opera.

Dr. Ortiz, a Colorado native, was a 1934 economics graduate of the University of California-Los Angeles. He received master's and doctoral degrees in economics from the University of California-Berkeley.

Survivors include his wife, Gertrude Burley Ortiz of Alexandria; two stepchildren, John Burley of Chicago and Virginia Thur of Fairfax; two sisters, Carmelita Mares and Consuelo Britting, both of California; and three step-grandchildren. JAMES E. LEER Security Director

James E. Leer, 75, a Washington native who was director of security at the National Security Agency for 10 years until his retirement in 1981, died of pancreatic cancer June 21 at a hospital in Sarasota, Fla. He had homes in Adelphi and Sarasota.

Mr. Leer was a graduate of Eastern High School and George Washington University.

He served in the Navy during World War II and was a special agent in the Office of Naval Intelligence from 1950 to 1952. He joined the NSA in 1952 while continuing to serve in the Naval Reserve. He retired from the reserve as lieutenant commander.

At the NSA, he advanced through the ranks, working as security officer for the European region in Germany during the mid-1960s.

He received several awards during his career, including the Meritorious Civilian Service Award and the National Intelligence Medal of Achievement.

He was a member of St. Camillus Catholic Parish in Silver Spring and the National Police Chiefs Association.

He spent the last eight years caring for his wife, Betty Leer, who had been left debilitated by a stroke. She died in February.

Survivors include two sons, Patrick Leer of College Park and Thomas Leer of Adelphi; two sisters, Regina Conlon of Bethesda and Anne Grimes of Camp Springs; a brother, Harvey Leer of Camp Verde, Ariz.; and two grandchildren.