Here I mentions some Memory Management tips those I faced during coding.

1. Always release an object when it has no more useability.

2. The returned object must be initialied.

3. If returned object is allocated then it must be released by autorelease command.

4. After allocation avoid copy constructor call.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s