I have an application that presents a modal view controller via a segue when the user taps a button (to view some media). When the user closes the modal I dismiss it from its presentor. However I can see in instruments that the view controller is not released.
When the user taps another item to open the modal again it creates a second instance of the modal view controller.
How can I prevent the second instance being created, or ensure that the first one is released?