diff options
author | kjlubick <kjlubick@google.com> | 2016-10-25 06:11:05 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-10-25 06:11:05 -0700 |
commit | 840f12a721fe5f544e0a03ce1e4aca3ad18389f6 (patch) | |
tree | 0b213a1506e48e9727dd6b2881be8cf008d9a3d5 /fuzz/Fuzz.h | |
parent | 90e971a41b1c190732bef34a79a7bdbdabbf5761 (diff) |
Fix memory leak in FuzzGradients
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2446643003
Review-Url: https://codereview.chromium.org/2446643003
Diffstat (limited to 'fuzz/Fuzz.h')
-rw-r--r-- | fuzz/Fuzz.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fuzz/Fuzz.h b/fuzz/Fuzz.h index c9c21567a5..43918f4a94 100644 --- a/fuzz/Fuzz.h +++ b/fuzz/Fuzz.h @@ -12,6 +12,8 @@ #include "SkTRegistry.h" #include "SkTypes.h" +#include <vector> + class Fuzz : SkNoncopyable { public: explicit Fuzz(sk_sp<SkData>); @@ -22,10 +24,10 @@ public: size_t remaining(); template <typename T> - bool next(T* n); + bool SK_WARN_UNUSED_RESULT next(T* n); // UBSAN reminds us that bool can only legally hold 0 or 1. - bool next(bool* b) { + bool SK_WARN_UNUSED_RESULT next(bool* b) { uint8_t byte; if (!this->next(&byte)) { return false; |