I have Object:
MyClass *obj= [[MyClass alloc] init];
What\'s the difference between:
[obj release]; // Only obj own this ob
Setting an object nil will create a memory leak(if you are taking ownership by alloc,retain or copy) because we are not having a pointer to that particular memory location.
so if you want to dealloc an object you have to take out all ownership of an object before making it nil by calling release method.
[obj release];
obj=nil;