This depends on the contract between the seller and the buyer. In most cases, the deposit is, in this case, returned to the buyer.