In case of a deposit of money or certified check for costs, if the costs be adjudged against the party making the deposit, the clerk or justice shall pay the costs out of the deposit, and the residue to the party entitled thereto. If the party making the deposit be not liable for costs, the whole of the deposit shall be returned to him.
Miss. Code § 11-53-9