Returning Unpurchased Items to Stock after Set Time


My client is selling unique paintings and currently, if someone adds a painting to his/her cart, it stays there indefinitely even if the order does not go through. Is there a way for the order to show up as in-stock if the item is not purchased within a set amount of time?