aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-04-22 11:24:20 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-04-22 11:24:20 -0700
commit12c20e40a47a454049cda8240a9b3d8918ac06ef (patch)
tree889061d348f2224b1a8376451f1f7115c95e09db /src
parent8892277d0b31c51d21e009759c7f543c7efb02d8 (diff)
Fix for GrAtlasTextContext memory leak
Diffstat (limited to 'src')
-rw-r--r--src/gpu/GrAtlasTextContext.h6
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;
}