Fix memory deletion error in "convex-lineonly-paths" GM
authorrobertphillips <robertphillips@google.com>
Tue, 28 Apr 2015 15:13:51 +0000 (08:13 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 28 Apr 2015 15:13:51 +0000 (08:13 -0700)
TBR=humper@google.com

Review URL: https://codereview.chromium.org/1110153002

gm/convex_all_line_paths.cpp

index d56325b..0ffd654 100644 (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)) {