diff options
author | Herb Derby <herb@google.com> | 2017-02-08 11:45:29 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-02-08 17:14:39 +0000 |
commit | b782627376c0db63ba42684eb901ff006db7a2b0 (patch) | |
tree | 509c61187a7a4cb8d53a5d894416605011a7471a | |
parent | 978764cb0fc90eb012122e2047f4f37cb9b67591 (diff) |
Remove double free in GM and Bench.
Since the SkArenaAlloc handles calling the dtor, it is not longer needed
in the test.
Change-Id: I70a09be7bd0e71bf1e3d55ef08b5e87742e0bd18
Reviewed-on: https://skia-review.googlesource.com/8191
Commit-Queue: Herb Derby <herb@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
-rw-r--r-- | bench/SkLinearBitmapPipelineBench.cpp | 2 | ||||
-rw-r--r-- | gm/SkLinearBitmapPipelineGM.cpp | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/bench/SkLinearBitmapPipelineBench.cpp b/bench/SkLinearBitmapPipelineBench.cpp index 8391a0fe9d..bc1b5dfacd 100644 --- a/bench/SkLinearBitmapPipelineBench.cpp +++ b/bench/SkLinearBitmapPipelineBench.cpp @@ -212,8 +212,6 @@ struct SkBitmapFPOrigShader : public CommonBitmapFPBenchmark { for (int n = 0; n < 1000*loops; n++) { ctx->shadeSpan(3, 6, buffer4b, count); } - - ctx->~Context(); } SkPaint fPaint; sk_sp<SkImage> fImage; diff --git a/gm/SkLinearBitmapPipelineGM.cpp b/gm/SkLinearBitmapPipelineGM.cpp index 953966b0e4..cab20d329c 100644 --- a/gm/SkLinearBitmapPipelineGM.cpp +++ b/gm/SkLinearBitmapPipelineGM.cpp @@ -83,8 +83,6 @@ static void draw_rect_orig(SkCanvas* canvas, const SkRect& r, SkColor c, const S } canvas->drawBitmap(bmdst, r.left(), r.top(), nullptr); - - ctx->~Context(); } static void draw_rect_fp(SkCanvas* canvas, const SkRect& r, SkColor c, const SkMatrix* mat, bool useBilerp) { |