summaryrefslogtreecommitdiffstats
path: root/jni
diff options
context:
space:
mode:
authorLikai Ding <likaid@codeaurora.org>2015-03-31 03:45:23 (GMT)
committerSteve Kondik <steve@cyngn.com>2016-07-30 12:05:25 (GMT)
commitf09d9d08dad6d71e2c88b5e057bd061b984cbd29 (patch)
tree6a3ddd3180f9a15149b9968cd1394498dd3ba1a8 /jni
parenta704fe9c708074abbfb862bebe69dc642ef1ee1c (diff)
downloadandroid_packages_apps_Snap-f09d9d08dad6d71e2c88b5e057bd061b984cbd29.zip
android_packages_apps_Snap-f09d9d08dad6d71e2c88b5e057bd061b984cbd29.tar.gz
android_packages_apps_Snap-f09d9d08dad6d71e2c88b5e057bd061b984cbd29.tar.bz2
SnapdragonCamera: fix a panorama memory leak
free imgMos at the end of runBlend() Change-Id: I9211cf70ae75dbb5d5db31cfe6984374e7c51d5f
Diffstat (limited to 'jni')
-rw-r--r--jni/feature_mos/src/mosaic/Blend.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/jni/feature_mos/src/mosaic/Blend.cpp b/jni/feature_mos/src/mosaic/Blend.cpp
index 7e2d7f9..8e8ca67 100644
--- a/jni/feature_mos/src/mosaic/Blend.cpp
+++ b/jni/feature_mos/src/mosaic/Blend.cpp
@@ -308,6 +308,7 @@ int Blend::runBlend(MosaicFrame **oframes, MosaicFrame **rframes,
mosaicHeight = Mheight;
}
+ free(imgMos);
return ret;
}