R – iPhone: leaks from other Apps taking up RAM

iphonememorymemory-leaks

I'm reading some people stating that if another (3rd party) app on someone's iPhone has been leaking memory, that this may reduce the (mystery) amount of RAM your app would otherwise have available.

This confuses me — does not all app memory get released when the app is closed by the user? And only one app is open at a time on iPhone?

Best Solution

Normally, any memory that your application allocates will be freed when it exits. However, many of Apple's applications continue running after they're "closed", so memory leaks in Mail, for instance, can affect available memory.

In addition, there are apps out there that claim to free up allocated memory. They really don't do anything other than force some dirty pages out of the buffer cache, but they appear to do something, so people believe they must be doing something useful.

Related Question