aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/images
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2016-03-17 05:36:18 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-17 05:36:18 -0700
commit0e3738db89e86035ed5d4f629bf58b817b1e5274 (patch)
tree5f09fa3a8af148a7f761fb113fb9f8e987c85d05 /src/images
parentd3cfd94228e6e58bb43dc4f799b4e443fba027a3 (diff)
free -> reset
The C++ standard library uses ".reset()" where we sometimes write ".free()". We also use ".reset()" quite a lot. This standardizes on ".reset()". This is one more step towards dropping SkAutoTDelete in favor of the standard std::unique_ptr. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1811723002 Review URL: https://codereview.chromium.org/1811723002
Diffstat (limited to 'src/images')
-rw-r--r--src/images/SkImageDecoder_libwebp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/images/SkImageDecoder_libwebp.cpp b/src/images/SkImageDecoder_libwebp.cpp
index 52535779fa..2db08cee83 100644
--- a/src/images/SkImageDecoder_libwebp.cpp
+++ b/src/images/SkImageDecoder_libwebp.cpp
@@ -224,7 +224,7 @@ static bool webp_idecode(SkStream* stream, WebPDecoderConfig* config) {
break;
}
} while (VP8_STATUS_OK != status);
- srcStorage.free();
+ srcStorage.reset();
WebPIDelete(idec);
WebPFreeDecBuffer(&config->output);