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:
parent
a62d32d1e3
commit
db3f8cdb59
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user