diff options
author | Jiangping Wu <jiangping.x.wu@sonyericsson.com> | 2010-08-27 10:56:55 +0200 |
---|---|---|
committer | Johan Redestig <johan.redestig@sonyericsson.com> | 2010-08-27 10:56:55 +0200 |
commit | eb7bd1066e19b5ef048fda5f756c4bb0bc891f30 (patch) | |
tree | dcf3e4653b8d4cf95d4b55755d87bec1b2a2fa5a | |
parent | 8d61723fea0a5cdcd08e34325123fbd3e0bd41ae (diff) | |
download | jhead-eb7bd1066e19b5ef048fda5f756c4bb0bc891f30.tar.gz |
Fixed memory leak in function getThumbnail.
If the function is able to extract a thumbnail it returns without
calling the function DiscardData() which cleans up the parsed
EXIF data.
Change-Id: I9642f059ff2270ad2ced26a349f14e5255ee40fb
-rw-r--r-- | main.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -458,6 +458,7 @@ static jbyteArray getThumbnail(JNIEnv *env, jobject jobj, jstring jfilename) LOGE("thumbnail size %d\n", ImageInfo.ThumbnailSize); #endif (*env)->ReleaseStringUTFChars(env, jfilename, filename); + DiscardData(); return byteArray; } noThumbnail: |