Index: bench/RecordingBench.cpp |
diff --git a/bench/RecordingBench.cpp b/bench/RecordingBench.cpp |
index fe857393231e3c2827d5aac3c8cc47aae18e76e1..cd029ddf14eeb0c1242455fac6c064a08065d2bf 100644 |
--- a/bench/RecordingBench.cpp |
+++ b/bench/RecordingBench.cpp |
@@ -37,6 +37,6 @@ void RecordingBench::onDraw(const int loops, SkCanvas*) { |
SkPictureRecorder recorder; |
fSrc->playback(recorder.beginRecording(w, h, fUseBBH ? &factory : NULL, |
SkPictureRecorder::kComputeSaveLayerInfo_RecordFlag)); |
- SkDELETE(recorder.endRecording()); |
+ SkSafeUnref(recorder.endRecording()); |
} |
} |