aboutsummaryrefslogtreecommitdiffhomepage
path: root/dm
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2014-07-25 14:17:35 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-07-25 14:17:35 -0700
commit048f422ec666cb18089c8fa7507e6bdca60d373c (patch)
tree001c090de19b09187762cce34d98911ebfbf91c3 /dm
parentb2808cd0411b5860f04f1364138674463768e414 (diff)
Fix crash in DM/SKPTask
R=bungeman@google.com Author: halcanary@google.com Review URL: https://codereview.chromium.org/416333007
Diffstat (limited to 'dm')
-rw-r--r--dm/DMSKPTask.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/dm/DMSKPTask.cpp b/dm/DMSKPTask.cpp
index 295499b961..357d46e719 100644
--- a/dm/DMSKPTask.cpp
+++ b/dm/DMSKPTask.cpp
@@ -15,7 +15,7 @@ class SkrComparisonTask : public CpuTask {
public:
SkrComparisonTask(const Task& parent, const SkPicture* picture, SkBitmap reference)
: CpuTask(parent)
- , fPicture(picture)
+ , fPicture(SkRef(picture))
, fReference(reference)
, fName(UnderJoin(parent.name().c_str(), "skr")) {}