Index: Source/platform/fonts/opentype/OpenTypeSanitizer.cpp |
diff --git a/Source/platform/fonts/opentype/OpenTypeSanitizer.cpp b/Source/platform/fonts/opentype/OpenTypeSanitizer.cpp |
index cce78bb8374854db8e5bdf474a25ac5026ea8871..a995d1fb0115de9282a79c1f893a6f45139ecfc9 100644 |
--- a/Source/platform/fonts/opentype/OpenTypeSanitizer.cpp |
+++ b/Source/platform/fonts/opentype/OpenTypeSanitizer.cpp |
@@ -78,7 +78,8 @@ PassRefPtr<SharedBuffer> OpenTypeSanitizer::sanitize() |
ots::ExpandingMemoryStream output(m_buffer->size(), maxWebFontSize); |
double start = currentTime(); |
- if (!ots::Process(&output, reinterpret_cast<const uint8_t*>(m_buffer->data()), m_buffer->size())) |
+ ots::OTSContext otsContext; |
+ if (!otsContext.Process(&output, reinterpret_cast<const uint8_t*>(m_buffer->data()), m_buffer->size())) |
return nullptr; |
const size_t transcodeLen = output.Tell(); |