diff --git a/gfx/tests/fuzz/TestCOLRv1.cpp b/gfx/tests/fuzz/TestCOLRv1.cpp index 9d8dc6186aec..531e0eec702c 100644 --- a/gfx/tests/fuzz/TestCOLRv1.cpp +++ b/gfx/tests/fuzz/TestCOLRv1.cpp @@ -43,8 +43,9 @@ static int FuzzingRunCOLRv1(const uint8_t* data, size_t size) { RefPtr sf = new MockScaledFont(uf, hb_data_font); Float f2p = kPixelSize / hb_face_get_upem(hb_data_face); - UniquePtr> colorPalette = - COLRFonts::SetupColorPalette(hb_data_face, nullptr, nullptr, "dummy"_ns); + auto colorPalette = + MakeUnique>(COLRFonts::CreateColorPalette( + hb_data_face, nullptr, nullptr, "dummy"_ns)); for (unsigned i = 0; i <= glyph_count; ++i) { if (COLRFonts::GetColrTableVersion(colr) == 1) {