Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Unified Diff: fuzz/Fuzz.h

Issue 2446643003: Fix memory leak in FuzzGradients (Closed)
Patch Set: include vector Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | fuzz/FuzzGradients.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fuzz/Fuzz.h
diff --git a/fuzz/Fuzz.h b/fuzz/Fuzz.h
index c9c21567a557238782c52955397b0cf4de974bed..43918f4a94cf68fc4442e3d5a00f90f0ce6695c1 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;
« no previous file with comments | « no previous file | fuzz/FuzzGradients.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698