diff options
author | msg555 <msg555@gmail.com> | 2013-07-03 19:26:23 -0400 |
---|---|---|
committer | msg555 <msg555@gmail.com> | 2013-07-03 19:26:23 -0400 |
commit | b264f5f83f916af84dd7321cf957a7a6730fe6a8 (patch) | |
tree | fb9d7694c38bd29e13da0323eb2be6523f974c70 | |
parent | 8113b17c473367bd1be7db707fc5b94121cb09e5 (diff) | |
download | base-b264f5f83f916af84dd7321cf957a7a6730fe6a8.tar.gz |
Mixed delete/delete[].
Error found via valgrind.
-rw-r--r-- | core/jni/android/graphics/HarfbuzzSkia.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/jni/android/graphics/HarfbuzzSkia.cpp b/core/jni/android/graphics/HarfbuzzSkia.cpp index 7e0837950b16..79db15a9af57 100644 --- a/core/jni/android/graphics/HarfbuzzSkia.cpp +++ b/core/jni/android/graphics/HarfbuzzSkia.cpp @@ -89,7 +89,7 @@ static void glyphsToAdvances(HB_Font hbFont, const HB_Glyph* glyphs, hb_uint32 n ALOGD("glyphsToAdvances -- advances[%d]=%d", i, advances[i]); #endif } - delete glyphs16; + delete[] glyphs16; } static HB_Bool canRender(HB_Font hbFont, const HB_UChar16* characters, hb_uint32 length) @@ -107,7 +107,7 @@ static HB_Bool canRender(HB_Font hbFont, const HB_UChar16* characters, hb_uint32 break; } } - delete glyphs16; + delete[] glyphs16; return result; } |