Here "a corrupted mind" means a mind that thinks only about immoral things. Alternate translation: "God allowed their minds, which they had filled with worthless and immoral thoughts, to completely control them" (See: [[rc://en/ta/man/jit/figs-explicit]])