Index: xfa/fxfa/app/xfa_textpiece.cpp |
diff --git a/xfa/fxfa/app/xfa_textpiece.cpp b/xfa/fxfa/app/xfa_textpiece.cpp |
index 4b57aa82d9be82f1be1d312955facab7e9b93f5d..933af6c92f3ea3b9493055bc3d81dae3d893961a 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); |
} |