All property, money, or estate taken or detained as evidence in any criminal cause shall be subject to the order of the court before which the indictment, information, or complaint shall be brought or pending, and shall, at the termination of the cause, be restored to the rightful owner.
R.I. Gen. Laws § 12-17-6