Fix memory deletion error in "convex-lineonly-paths" GM

TBR=humper@google.com

Review URL: https://codereview.chromium.org/1110153002
This commit is contained in:
robertphillips 2015-04-28 08:13:51 -07:00 committed by Commit bot
parent a62d32d1e3
commit db3f8cdb59

View File

@ -165,7 +165,7 @@ protected:
};
SK_COMPILE_ASSERT(SK_ARRAY_COUNT(gSizes) == SK_ARRAY_COUNT(gPoints), array_mismatch);
SkAutoTDelete<SkPoint> data;
SkAutoTDeleteArray<SkPoint> data(NULL);
const SkPoint* points;
int numPts;
if (index < (int) SK_ARRAY_COUNT(gPoints)) {