diff options
Diffstat (limited to 'xfa/fxfa/app/xfa_textpiece.cpp')
-rw-r--r-- | xfa/fxfa/app/xfa_textpiece.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xfa/fxfa/app/xfa_textpiece.cpp b/xfa/fxfa/app/xfa_textpiece.cpp index 4b57aa82d9..933af6c92f 100644 --- a/xfa/fxfa/app/xfa_textpiece.cpp +++ b/xfa/fxfa/app/xfa_textpiece.cpp @@ -9,9 +9,12 @@ #include "xfa/fxfa/app/cxfa_linkuserdata.h" XFA_TextPiece::XFA_TextPiece() - : pszText(nullptr), pFont(nullptr), pLinkData(nullptr) {} + : pszText(nullptr), pWidths(nullptr), pFont(nullptr), pLinkData(nullptr) {} XFA_TextPiece::~XFA_TextPiece() { if (pLinkData) pLinkData->Release(); + + FX_Free(pszText); + FX_Free(pWidths); } |