diff options
| -rw-r--r-- | libs/hwui/FontRenderer.cpp | 2 | ||||
| -rw-r--r-- | libs/hwui/TextDropShadowCache.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/FontRenderer.cpp b/libs/hwui/FontRenderer.cpp index 5d5e6a58001e..1d9eb0e0793b 100644 --- a/libs/hwui/FontRenderer.cpp +++ b/libs/hwui/FontRenderer.cpp @@ -797,7 +797,7 @@ void FontRenderer::blurImage(uint8_t** image, int32_t width, int32_t height, int mRsScript->blur(ain, aout); // replace the original image's pointer, avoiding a copy back to the original buffer - delete *image; + free(*image); *image = outImage; } diff --git a/libs/hwui/TextDropShadowCache.cpp b/libs/hwui/TextDropShadowCache.cpp index db7bd489b404..f1f35bd1711c 100644 --- a/libs/hwui/TextDropShadowCache.cpp +++ b/libs/hwui/TextDropShadowCache.cpp @@ -222,7 +222,7 @@ ShadowTexture* TextDropShadowCache::get(SkPaint* paint, const char* text, uint32 } // Cleanup shadow - delete shadow.image; + free(shadow.image); } return texture; |