Cardiff almost pulled off the shock of the round after Gwennan Harries had shot them into a 65th-minute lead.
Leeds snatched a last-minute equaliser through Nicole Emmanuel, and it was four minutes into stoppage time when Smith hit the winner.