title: phonegap android camera: crash when "correctOrientation" option set
body: <p>I know people have asked similar questions but I am having a serious issue.</p>
  
  <p>anyone who uses phone gap knows it is definitely not the end all to solutions for an app!</p>
  
  <p>but any way here is my code:</p>
  
  <pre><code>navigator.camera.getPicture(onPhotoDataSuccess, onFail, { quality: 50,
  destinationType: destinationType.FILE_URI, 
  correctOrientation: true });
  </code></pre>
  
  <p>the problem is when I add the correctOrientation, my freaking app has some sort of memory leak because it closes out and has an error. When i take out the correct orientation parameter, its fine, except for the fact that the orientation is wrong! does anyone have a work around to get my pictures' orientations correct?</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  </code></pre>
  
  <p>
  
  <pre><code>     http://www.apache.org/licenses/LICENSE-2.0
  
     Unless required by applicable law or agreed to in writing,
     software distributed under the License is distributed on an
     "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
     KIND, either express or implied.  See the License for the
     specific language governing permissions and limitations
     under the License.
  </code></pre>
  
  <p>-->
  
      </p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.CAMERA" /&gt;
  &lt;uses-permission android:name="android.permission.VIBRATE" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" /&gt;
  &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;uses-permission android:name="android.permission.RECEIVE_SMS" /&gt;
  &lt;uses-permission android:name="android.permission.RECORD_AUDIO" /&gt;
  &lt;uses-permission android:name="android.permission.RECORD_VIDEO"/&gt;
  &lt;uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /&gt;
  &lt;uses-permission android:name="android.permission.READ_CONTACTS" /&gt;
  &lt;uses-permission android:name="android.permission.WRITE_CONTACTS" /&gt;   
  &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;   
  &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  &lt;uses-permission android:name="android.permission.GET_ACCOUNTS" /&gt;
  &lt;uses-permission android:name="android.permission.BROADCAST_STICKY" /&gt;
  
  
  &lt;application android:icon="@drawable/icon" android:label="@string/app_name"
      android:hardwareAccelerated="true"
      android:debuggable="true"&gt;
      &lt;activity android:name="mysecond" android:label="@string/app_name"
              android:theme="@android:style/Theme.Black.NoTitleBar"
              android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  &lt;/application&gt;
  
  &lt;uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17"/&gt;
  </code></pre>
  
  <p> </p>