title: How i solve memory leak problem?
body: <p>I developing an simple application in which design or make code in which i creating and instance object of UIImage. When i swip on Ipad screen it make up an image of the sreen and that image i render into UIImage object after that this image i set into UIImageView object and UIimage object is released.
  Every time i swipe on the screen and above process is does again and again. But it give me leak in <code>renderImage = [[UIImage alloc] init];</code>.</p>
  
  <p>Code,</p>
  
  <pre><code>_renderImage = [[UIImage alloc] init];
  
  _textImageV = [[UIImageView alloc] init];
  
  [self renderIntoImage];
  
  -(void)renderIntoImage
  {
  
      UIGraphicsBeginImageContext(bgTableView.bounds.size);
      [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
      _renderImage = UIGraphicsGetImageFromCurrentImageContext();
      UIGraphicsEndImageContext();
  }
  
   _textImageV.image = _renderImage;
  [_renderImage release];
  </code></pre>
  
  <p>after completing the process of swipe i also releasing _textImageV.</p>
  
  <p>How i solve the memory leak problem in UIImage *_renderImage?</p>