Index: fpdfsdk/formfiller/cffl_textfield.cpp |
diff --git a/fpdfsdk/formfiller/cffl_textfield.cpp b/fpdfsdk/formfiller/cffl_textfield.cpp |
index 611da7438a5d39eb29bcaffd695720731a861071..242179e6f9dadc5471a412bb37a04703b82b742b 100644 |
--- a/fpdfsdk/formfiller/cffl_textfield.cpp |
+++ b/fpdfsdk/formfiller/cffl_textfield.cpp |
@@ -70,8 +70,10 @@ PWL_CREATEPARAM CFFL_TextField::GetCreateParam() { |
break; |
} |
- if (!m_pFontMap) |
- m_pFontMap.reset(new CBA_FontMap(m_pWidget, m_pEnv->GetSysHandler())); |
+ if (!m_pFontMap) { |
+ m_pFontMap = |
+ WrapUnique(new CBA_FontMap(m_pWidget, m_pEnv->GetSysHandler())); |
+ } |
cp.pFontMap = m_pFontMap.get(); |
cp.pFocusHandler = this; |