diff options
author | Tom Taylor <tomtaylor@google.com> | 2017-01-06 18:03:43 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-01-06 18:03:43 +0000 |
commit | 0d9e6a3cf5c60b100e2dc1b38ffb8505d2adce6f (patch) | |
tree | 50b0da28bf3ba393abe6a3e9696238fb03ab8dec | |
parent | 4d1366300ea164aa1fba4422e03fe7b519016069 (diff) | |
parent | 728c4943e990893edd109997ac0bd01dd3a76494 (diff) | |
download | android_packages_apps_Messaging-0d9e6a3cf5c60b100e2dc1b38ffb8505d2adce6f.tar.gz android_packages_apps_Messaging-0d9e6a3cf5c60b100e2dc1b38ffb8505d2adce6f.tar.bz2 android_packages_apps_Messaging-0d9e6a3cf5c60b100e2dc1b38ffb8505d2adce6f.zip |
33388925 Mismatched new vs delete in framesequence library am: 837474a376 am: b44b56b779 am: cefccea7b4 am: c708e8fb35 am: 2917015529 am: 508f541438
am: 728c4943e9
Change-Id: I9cca57ea1b2e1ab554feec399c6697e14b258a3c
-rw-r--r-- | jni/GifTranscoder.cpp | 4 |
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 |