title: Recieve a Memory warning iOS after using camera with Cordova
body: <p>When I take a photo, I begin to receive memory warnings continuously. I'm using Cordova 3.5 and the camera plugin with these settings.</p>
  
  <pre><code>var _config;      
  var pictureSource;
  var destinationType; // sets the format of returned value.
  var encodingType; // enconding type 0=JPG 1=PNG
  
  /**
   * Initialize camera plugin.
   * @param {object} config - settings.
   */
  function initialize(config) {
      alert("CAMERA is comming!!");
      // Wait for Cordova to connect with the device
      document.addEventListener('deviceready', onDeviceReady, false);
  }
  
  /** 
   * Cordova is ready to be used!
   * @param {object} config - settings.
   */
  function onDeviceReady() {
  
      console.log("CAMERA is READY!!");
      pictureSource=navigator.camera.PictureSourceType;
      destinationType=navigator.camera.DestinationType;
      encodingType = navigator.camera.EncodingType;
      capturePhoto();
  }
  
  /**
   * Set camera plugin settings.
   * @param {object} config - settings.
   */
  function setConfig(config) {
      _config = config;
  }
  
  /**
   * Take picture using device camera and retrieve image as base64-encoded string.
   */
  function capturePhoto() {
      setConfig({ quality: 20, destinationType: destinationType.DATA_URL, encodingType: 0});
      navigator.camera.getPicture(onPhotoDataSuccess, onFail, _config);
  }
  
  /**
   * Photo is successfully retrieved.
   * @callback getPicture~onPhotoDataSuccess
   * @param {string} imageData - A base64-encoded image.
   */
  function onPhotoDataSuccess(imageData) {
      //Edit photo
  }   
  </code></pre>
  
  <p>I make sure that the quality is low, but it gets slower until it crashes.</p>
  
  <p>Thanks for all the help!</p>