| OLD | NEW |
| 1 // Copyright 2017 PDFium Authors. All rights reserved. | 1 // Copyright 2017 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #include "xfa/fxfa/app/xfa_textpiece.h" | 7 #include "xfa/fxfa/app/xfa_textpiece.h" |
| 8 | 8 |
| 9 #include "xfa/fxfa/app/cxfa_linkuserdata.h" | 9 #include "xfa/fxfa/app/cxfa_linkuserdata.h" |
| 10 | 10 |
| 11 XFA_TextPiece::XFA_TextPiece() | 11 XFA_TextPiece::XFA_TextPiece() |
| 12 : pszText(nullptr), pFont(nullptr), pLinkData(nullptr) {} | 12 : pszText(nullptr), pWidths(nullptr), pFont(nullptr), pLinkData(nullptr) {} |
| 13 | 13 |
| 14 XFA_TextPiece::~XFA_TextPiece() { | 14 XFA_TextPiece::~XFA_TextPiece() { |
| 15 if (pLinkData) | 15 if (pLinkData) |
| 16 pLinkData->Release(); | 16 pLinkData->Release(); |
| 17 |
| 18 FX_Free(pszText); |
| 19 FX_Free(pWidths); |
| 17 } | 20 } |
| OLD | NEW |