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

Side by Side Diff: xfa/src/fgas/include/fx_utl.h

Issue 1579503002: XFA: Fix memory leakage on Linux - part 1 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 4 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 | « fpdfsdk/src/fpdfxfa/fpdfxfa_doc.cpp ('k') | xfa/src/fgas/src/crt/fx_utils.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef _FX_UTILS 7 #ifndef _FX_UTILS
8 #define _FX_UTILS 8 #define _FX_UTILS
9 9
10 #include "fx_mem.h" 10 #include "fx_mem.h"
(...skipping 28 matching lines...) Expand all
39 class CFX_ThreadLock { 39 class CFX_ThreadLock {
40 public: 40 public:
41 CFX_ThreadLock(); 41 CFX_ThreadLock();
42 virtual ~CFX_ThreadLock(); 42 virtual ~CFX_ThreadLock();
43 void Lock(); 43 void Lock();
44 void Unlock(); 44 void Unlock();
45 }; 45 };
46 class CFX_BaseArray : public CFX_Target { 46 class CFX_BaseArray : public CFX_Target {
47 protected: 47 protected:
48 CFX_BaseArray(int32_t iGrowSize, int32_t iBlockSize); 48 CFX_BaseArray(int32_t iGrowSize, int32_t iBlockSize);
49 ~CFX_BaseArray();
49 int32_t GetSize() const; 50 int32_t GetSize() const;
50 int32_t GetBlockSize() const; 51 int32_t GetBlockSize() const;
51 uint8_t* AddSpaceTo(int32_t index); 52 uint8_t* AddSpaceTo(int32_t index);
52 uint8_t* GetAt(int32_t index) const; 53 uint8_t* GetAt(int32_t index) const;
53 uint8_t* GetBuffer() const; 54 uint8_t* GetBuffer() const;
54 int32_t Append(const CFX_BaseArray& src, 55 int32_t Append(const CFX_BaseArray& src,
55 int32_t iStart = 0, 56 int32_t iStart = 0,
56 int32_t iCount = -1); 57 int32_t iCount = -1);
57 int32_t Copy(const CFX_BaseArray& src, 58 int32_t Copy(const CFX_BaseArray& src,
58 int32_t iStart = 0, 59 int32_t iStart = 0,
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 pChild->SetPrevNode(pLast); 715 pChild->SetPrevNode(pLast);
715 pLast->SetNextNode(pChild); 716 pLast->SetNextNode(pChild);
716 } 717 }
717 return pChild; 718 return pChild;
718 } 719 }
719 720
720 protected: 721 protected:
721 CPLTreeNode m_Root; 722 CPLTreeNode m_Root;
722 }; 723 };
723 #endif 724 #endif
OLDNEW
« no previous file with comments | « fpdfsdk/src/fpdfxfa/fpdfxfa_doc.cpp ('k') | xfa/src/fgas/src/crt/fx_utils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698