diff options
author | Elliott Hughes <enh@google.com> | 2014-11-12 01:45:42 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-11-12 01:45:42 +0000 |
commit | 34acb4c8d4abe1c4f580b85ddc84b18b7e38e417 (patch) | |
tree | 3530b9c80a19612590527c6c47747de7699b9139 /core/jni/android | |
parent | bc0b57f3366420d7a634d5ef2bc6d9acaf55e7bf (diff) | |
parent | d865900425d9593974aac640bc4deb93865dcfbe (diff) | |
download | frameworks_base-34acb4c8d4abe1c4f580b85ddc84b18b7e38e417.zip frameworks_base-34acb4c8d4abe1c4f580b85ddc84b18b7e38e417.tar.gz frameworks_base-34acb4c8d4abe1c4f580b85ddc84b18b7e38e417.tar.bz2 |
Merge "Prevent resource leak in YuvToJpegEncoder"
Diffstat (limited to 'core/jni/android')
-rw-r--r-- | core/jni/android/graphics/YuvToJpegEncoder.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/jni/android/graphics/YuvToJpegEncoder.cpp b/core/jni/android/graphics/YuvToJpegEncoder.cpp index 6591d60..9b2e4b5 100644 --- a/core/jni/android/graphics/YuvToJpegEncoder.cpp +++ b/core/jni/android/graphics/YuvToJpegEncoder.cpp @@ -236,6 +236,7 @@ static jboolean YuvImage_compressToJpeg(JNIEnv* env, jobject, jbyteArray inYuv, env->ReleaseByteArrayElements(inYuv, yuv, 0); env->ReleaseIntArrayElements(offsets, imgOffsets, 0); env->ReleaseIntArrayElements(strides, imgStrides, 0); + delete strm; return result; } /////////////////////////////////////////////////////////////////////////////// |