title: Is there a way to force an object to free memory in Cocoa?
body: <p>I'm working on an iOS app with two different view controllers and three different views. The first view controller has just one view, which is a menu kind screen. The other view controller has two views, both of which display content heavily (videos, images, sounds, etc.). The problem is that the second view of this view controller absolutely has to deallocate ALL of it's objects, when dismissed, and it's not. There is an object from another class (a custom video player) that is not being deallocated, and that's causing the app to act erratically. I know it is not being deallocated because some of it's objects are still alive in memory, so, before I go through the whole code (1500+ lines of code) looking for objects that MIGHT not free when I want, is there a way to force the object to free it's memory? like a flush or something?</p>