diff options
-rw-r--r-- | bench/benchmain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bench/benchmain.cpp b/bench/benchmain.cpp index 2d8862600e..49ef00de6a 100644 --- a/bench/benchmain.cpp +++ b/bench/benchmain.cpp @@ -603,7 +603,7 @@ int tool_main(int argc, char** argv) { if ((benchMode == kRecord_BenchMode || benchMode == kPictureRecord_BenchMode)) { // Clear the recorded commands so that they do not accumulate. - canvas.reset(recordTo.beginRecording(dim.fX, dim.fY, kRecordFlags)); + canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY, kRecordFlags))); } timer.start(); |