title: ARC "It is not safe to remove an unused autorelease message"
body: <p>When transitioning to ARC, I got the following compiler error: "It is not safe to remove an unused autorelease message". </p>
  
  <p>If I simply remove the autorelease message, obj will be immediately deallocated at the end of getAutoreleasedObj, which will cause a crash in printObj. So How do I handle the autoreleased object, and convert the following code to ARC? </p>
  
  <pre><code>- (MyClass *) getAutoreleasedObj {
      MyClass *obj = [[MyClass alloc] init];
      [obj autorelease];
      return obj;
  }
  
  - (void) printObj {
  NSLog(@"%@", [self getAutoreleasedObj];
  }
  </code></pre>