Memory Leak NSInvocationOperation

What is possible reason of memory leak in following code snippet, is it forming some kind of Cycles

Code Block
NSInvocationOperation* theOp = [[NSInvocationOperation alloc]
initWithTarget:self
selector:@selector(methodCall:) object:Nil];
[operationQueue addOperation:theOp];
[theOp release];

Is this a memory leak? Or a retain cycle? Or some other form of abandoned memory?

If it’s a retain cycle, be aware that NSInvocationOperation with retain the target object you pass it.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
Memory Leak NSInvocationOperation
 
 
Q