summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Taylor <tomtaylor@google.com>2017-01-06 17:56:08 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-01-06 17:56:08 +0000
commit508f541438786d8cf0df6128a3a3f2e65a61c504 (patch)
tree6b0fe3aa47b12ab9512c6a700a72557128e2642e
parent8166028e0330b9acdd4da270baa29abf280069a6 (diff)
parent29170155298276116623f7605aba238750f079ed (diff)
downloadandroid_packages_apps_Messaging-508f541438786d8cf0df6128a3a3f2e65a61c504.tar.gz
android_packages_apps_Messaging-508f541438786d8cf0df6128a3a3f2e65a61c504.tar.bz2
android_packages_apps_Messaging-508f541438786d8cf0df6128a3a3f2e65a61c504.zip
33388925 Mismatched new vs delete in framesequence library am: 837474a376 am: b44b56b779 am: cefccea7b4 am: c708e8fb35
am: 2917015529 Change-Id: I71a178ea92909fe11275ed5a051efca85ec7f6e2
-rw-r--r--jni/GifTranscoder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/jni/GifTranscoder.cpp b/jni/GifTranscoder.cpp
index a7f5c74..6245538 100644
--- a/jni/GifTranscoder.cpp
+++ b/jni/GifTranscoder.cpp
@@ -144,10 +144,10 @@ bool GifTranscoder::resizeBoxFilter(GifFileType* gifIn, GifFileType* gifOut) {
std::vector<GifByteType> srcBuffer(gifIn->SWidth * gifIn->SHeight);
// Buffer for rendering images from the input GIF.
- std::unique_ptr<ColorARGB> renderBuffer(new ColorARGB[gifIn->SWidth * gifIn->SHeight]);
+ std::unique_ptr<ColorARGB[]> renderBuffer(new ColorARGB[gifIn->SWidth * gifIn->SHeight]);
// Buffer for writing new images to output GIF (one row at a time).
- std::unique_ptr<GifByteType> dstRowBuffer(new GifByteType[gifOut->SWidth]);
+ std::unique_ptr<GifByteType[]> dstRowBuffer(new GifByteType[gifOut->SWidth]);
// Many GIFs use DISPOSE_DO_NOT to make images draw on top of previous images. They can also
// use DISPOSE_BACKGROUND to clear the last image region before drawing the next one. We need