Scope Harfbuzz objects in fuzzers
Create a header, hb_scoped.h, which contains std::unique_ptr wrappings of commonly used Harfbuzz objects that clean up the objects when they go out of scope. Subsequently, remove calls of hb_*_destroy() functions in harfbuzz_fuzzer.cc. Bug: 1046803 Change-Id: Icbc13201f77336fe3f7e0f6c9191a0e52c2f76cf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2034111 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by:Ben Wagner <bungeman@chromium.org> Reviewed-by:
Dominik Röttsches <drott@chromium.org> Cr-Commit-Position: refs/heads/master@{#738447}
Showing
Please register or sign in to comment