Index: tools/CopyTilesRenderer.cpp |
diff --git a/tools/CopyTilesRenderer.cpp b/tools/CopyTilesRenderer.cpp |
index f5ffb25d03bb94505cc5759c21790b48f3c67394..a78d772c6846a496ad05596e2968ed99c45ba6b0 100644 |
--- a/tools/CopyTilesRenderer.cpp |
+++ b/tools/CopyTilesRenderer.cpp |
@@ -35,7 +35,7 @@ namespace sk_tools { |
SkASSERT(pict != nullptr); |
// Only work with absolute widths (as opposed to percentages). |
SkASSERT(this->getTileWidth() != 0 && this->getTileHeight() != 0); |
- fPicture.reset(pict)->ref(); |
+ fPicture.reset(SkRef(pict)); |
this->CopyString(&fWritePath, writePath); |
this->CopyString(&fMismatchPath, mismatchPath); |
this->CopyString(&fInputFilename, inputFilename); |