projects
/
platform
/
upstream
/
libSkiaSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a62d32d
)
Fix memory deletion error in "convex-lineonly-paths" GM
author
robertphillips
<robertphillips@google.com>
Tue, 28 Apr 2015 15:13:51 +0000
(08:13 -0700)
committer
Commit 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
patch
|
blob
|
history
diff --git
a/gm/convex_all_line_paths.cpp
b/gm/convex_all_line_paths.cpp
index
d56325b
..
0ffd654
100644
(file)
--- a/
gm/convex_all_line_paths.cpp
+++ b/
gm/convex_all_line_paths.cpp
@@
-165,7
+165,7
@@
protected:
};
SK_COMPILE_ASSERT(SK_ARRAY_COUNT(gSizes) == SK_ARRAY_COUNT(gPoints), array_mismatch);
- SkAutoTDelete
<SkPoint> data
;
+ SkAutoTDelete
Array<SkPoint> data(NULL)
;
const SkPoint* points;
int numPts;
if (index < (int) SK_ARRAY_COUNT(gPoints)) {