aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2015-08-24 14:13:29 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-24 14:13:29 -0700
commitfccb77d59eb545396780f50c0c6026c0f4a66bde (patch)
treebf573a6e508090a00f4bc6c51258a4baf7b301bc
parenta5114d7f26524f75b96e63ffd796d44749b6248c (diff)
DM: use SkBitmap::reset()
-rw-r--r--dm/DM.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/dm/DM.cpp b/dm/DM.cpp
index 8537313cf3..b93f9d8078 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -493,7 +493,7 @@ static bool dump_png(SkBitmap bitmap, const char* path, const char* md5) {
}
// We don't need bitmap anymore. Might as well drop our ref.
- bitmap = SkBitmap();
+ bitmap.reset();
FILE* f = fopen(path, "w");
if (!f) { return false; }