diff options
author | 2014-02-04 19:32:37 +0000 | |
---|---|---|
committer | 2014-02-04 19:32:37 +0000 | |
commit | 0f53122f89b26d298cf954ce8e1a131a7db84b79 (patch) | |
tree | 23a4f92f489b52dce7dd079571d0811ab4e94618 /bench | |
parent | ea6e14a3825d6f805527ddfbce4fd6b2bf73a7df (diff) |
Fix crash in bench when "--mode record" is used
R=mtklein@google.com
Author: robertphillips@google.com
Review URL: https://codereview.chromium.org/150633008
git-svn-id: http://skia.googlecode.com/svn/trunk@13310 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'bench')
-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(); |