title: Unity memory issue Resources image
body: <p>I'm loading resources into unity but I don't know how to release them from memory.</p>
  
  <p>I have a script that loads preview images like this:</p>
  
  <pre><code>//load the 12 images
          while (currentPreviewNumber &lt; 12) {
              Debug.Log (currentPreviewNumber);
              byte[] tBytes = System.IO.File.ReadAllBytes (Application.persistentDataPath + "/" + currentPreviewNumber + ".jpg");
              Texture2D texture = new Texture2D (100, 100);
              texture.LoadImage (tBytes);
  
              sprites [currentPreviewNumber] = Sprite.Create (texture, new Rect (0, 0, mCamera.width, mCamera.height),
                  new Vector2 (0.5f, 0.5f),
                  40);
  
              currentPreviewNumber++;
          }
  </code></pre>
  
  <p>but everytime I run the code my memory usage doubles.  how do I release the sprites from memory when executing a second time?</p>