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

Side by Side Diff: core/src/fxge/apple/apple_int.h

Issue 1192743004: Cleanup: Do not check pointers before deleting them. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 5 years, 6 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 | « core/src/fxge/android/fpf_skiamodule.cpp ('k') | core/src/fxge/apple/fx_quartz_device.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 CORE_SRC_FXGE_APPLE_APPLE_INT_H_ 7 #ifndef CORE_SRC_FXGE_APPLE_APPLE_INT_H_
8 #define CORE_SRC_FXGE_APPLE_APPLE_INT_H_ 8 #define CORE_SRC_FXGE_APPLE_APPLE_INT_H_
9 9
10 #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ 10 #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 }; 64 };
65 class CApplePlatform 65 class CApplePlatform
66 { 66 {
67 public: 67 public:
68 CApplePlatform() 68 CApplePlatform()
69 { 69 {
70 m_pFontMapper = NULL; 70 m_pFontMapper = NULL;
71 } 71 }
72 ~CApplePlatform() 72 ~CApplePlatform()
73 { 73 {
74 if (m_pFontMapper) { 74 delete m_pFontMapper;
75 delete m_pFontMapper;
76 }
77 } 75 }
78 CQuartz2D _quartz2d; 76 CQuartz2D _quartz2d;
79 IFX_FontMapper* m_pFontMapper; 77 IFX_FontMapper* m_pFontMapper;
80 }; 78 };
81 class CFX_QuartzDeviceDriver : public IFX_RenderDeviceDriver 79 class CFX_QuartzDeviceDriver : public IFX_RenderDeviceDriver
82 { 80 {
83 public: 81 public:
84 CFX_QuartzDeviceDriver(CGContextRef context, int32_t deviceClass); 82 CFX_QuartzDeviceDriver(CGContextRef context, int32_t deviceClass);
85 virtual ~CFX_QuartzDeviceDriver(); 83 virtual ~CFX_QuartzDeviceDriver();
86 84
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 int _tableCount; 237 int _tableCount;
240 int _totalSize; 238 int _totalSize;
241 }; 239 };
242 uint32_t FX_GetHashCode( const FX_CHAR* pStr); 240 uint32_t FX_GetHashCode( const FX_CHAR* pStr);
243 FX_DWORD FX_IOSGetMatchFamilyNameHashcode(const FX_CHAR* pFontName); 241 FX_DWORD FX_IOSGetMatchFamilyNameHashcode(const FX_CHAR* pFontName);
244 uint32_t FX_IOSGetFamilyNamesCount(); 242 uint32_t FX_IOSGetFamilyNamesCount();
245 const FX_CHAR* FX_IOSGetFamilyName( uint32_t uIndex); 243 const FX_CHAR* FX_IOSGetFamilyName( uint32_t uIndex);
246 #endif 244 #endif
247 245
248 #endif // CORE_SRC_FXGE_APPLE_APPLE_INT_H_ 246 #endif // CORE_SRC_FXGE_APPLE_APPLE_INT_H_
OLDNEW
« no previous file with comments | « core/src/fxge/android/fpf_skiamodule.cpp ('k') | core/src/fxge/apple/fx_quartz_device.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698