diff options
author | 2015-04-22 11:24:20 -0700 | |
---|---|---|
committer | 2015-04-22 11:24:20 -0700 | |
commit | 12c20e40a47a454049cda8240a9b3d8918ac06ef (patch) | |
tree | 889061d348f2224b1a8376451f1f7115c95e09db /src | |
parent | 8892277d0b31c51d21e009759c7f543c7efb02d8 (diff) |
Fix for GrAtlasTextContext memory leak
BUG=skia:
Review URL: https://codereview.chromium.org/1072193009
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/GrAtlasTextContext.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gpu/GrAtlasTextContext.h b/src/gpu/GrAtlasTextContext.h index c0975b9857..ebd94f9b3d 100644 --- a/src/gpu/GrAtlasTextContext.h +++ b/src/gpu/GrAtlasTextContext.h @@ -252,6 +252,12 @@ private: , fMinMaxScale(SK_ScalarMax) , fTextType(0) {} + ~BitmapTextBlob() override { + for (int i = 0; i < fRunCount; i++) { + fRuns[i].~Run(); + } + } + static const Key& GetKey(const BitmapTextBlob& blob) { return blob.fKey; } |