Fix for GrAtlasTextContext memory leak
BUG=skia: Review URL: https://codereview.chromium.org/1072193009
This commit is contained in:
parent
8892277d0b
commit
12c20e40a4
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user