Merge "Use free for memory chunks allocated through memalign."

This commit is contained in:
Ben Cheng
2013-02-20 22:34:57 +00:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -222,7 +222,7 @@ ShadowTexture* TextDropShadowCache::get(SkPaint* paint, const char* text, uint32
}
// Cleanup shadow
delete shadow.image;
free(shadow.image);
}
return texture;