Index: fuzz/FilterFuzz.cpp |
diff --git a/fuzz/FilterFuzz.cpp b/fuzz/FilterFuzz.cpp |
index 484bbf7624dda68dc2a712189622d9760e17f882..791fe01a33e2be5f5dfc8d98fd8bb5adfa1ba275 100644 |
--- a/fuzz/FilterFuzz.cpp |
+++ b/fuzz/FilterFuzz.cpp |
@@ -706,13 +706,17 @@ |
} |
break; |
} |
- case DISPLACE: |
- filter = SkDisplacementMapEffect::Make(make_channel_selector_type(), |
- make_channel_selector_type(), |
- make_scalar(), |
- make_image_filter(false), |
- make_image_filter()); |
- break; |
+ case DISPLACE: { |
+ sk_sp<SkImageFilter> subFilter1(make_image_filter(false)); |
+ sk_sp<SkImageFilter> subFilter2(make_image_filter()); |
+ |
+ filter = sk_sp<SkImageFilter>(SkDisplacementMapEffect::Create(make_channel_selector_type(), |
+ make_channel_selector_type(), |
+ make_scalar(), |
+ subFilter1.get(), |
+ subFilter2.get())); |
+ break; |
+ } |
case TILE: { |
sk_sp<SkImageFilter> subFilter(make_image_filter(false)); |