Evidence for magnetic disconnection of mass ejections in the corona