Possible Duplicate:
iOS 4 - can I close and app without it staying open in the background?
From what I know, pressing on the home button on iphone 4 will merely hide the application, instead of closing it.
So how can I make sure that all the unwanted apps are closed, so that the memory can be reused?