To dry your memory foam mattress allow to sit in direct sunlight and fresh air if possible. However, if indoors is the only option you can place the mattress by an open window. Put the mattress on its side by the open window until it's fully dry. Alternatively, an electric fan could speed up the drying process indoors.