Remove double free in GM and Bench.
authorHerb Derby <herb@google.com>
Wed, 8 Feb 2017 16:45:29 +0000 (11:45 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Wed, 8 Feb 2017 17:14:39 +0000 (17:14 +0000)
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>
bench/SkLinearBitmapPipelineBench.cpp
gm/SkLinearBitmapPipelineGM.cpp

index 8391a0f..bc1b5df 100644 (file)
@@ -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;
index 953966b..cab20d3 100644 (file)
@@ -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) {