So say I'm getting results from my core data request: (this is example code)
On a button press event it does:
NSMutableArray *results = [[myContext executeFetchRequest:request error:&error] mutableCopy];
myObject = (MyObject *)[mutableFetchResults1 objectAtIndex:0]; // assume that there's something in there
Now I want myObject to stick around for awhile in my program... i.e., the information contained in 'myObject' will be used in other events and such. So I have it defined in my .h file.
My question is, how do I manage memory in this case. Do I need to 'release' results or myObject at some point? Instruments is saying that this is leaking... But do you see any problems here?