Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: xfa/fxfa/app/xfa_textpiece.cpp

Issue 2631703003: Avoid endless loop deleting CFGAS_GEFont. (Closed)
Patch Set: rebase Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fxfa/app/xfa_fftext.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 }
OLDNEW
« no previous file with comments | « xfa/fxfa/app/xfa_fftext.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698