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

Unified Diff: core/src/fxge/win32/fx_win32_print.cpp

Issue 1297713003: Don't bother checking pointers before delete[] and FX_Free(). (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: core/src/fxge/win32/fx_win32_print.cpp
diff --git a/core/src/fxge/win32/fx_win32_print.cpp b/core/src/fxge/win32/fx_win32_print.cpp
index 85f339b5295dfeccc9f02523ce2f4cb7a3d49e21..1e8ff1afb9593f60a14a4e1840774d16c18afcbc 100644
--- a/core/src/fxge/win32/fx_win32_print.cpp
+++ b/core/src/fxge/win32/fx_win32_print.cpp
@@ -283,9 +283,7 @@ CPSOutput::CPSOutput(HDC hDC) {
m_pBuf = NULL;
}
CPSOutput::~CPSOutput() {
- if (m_pBuf) {
FX_Free(m_pBuf);
- }
}
void CPSOutput::Init() {
m_pBuf = FX_Alloc(FX_CHAR, 1026);

Powered by Google App Engine
This is Rietveld 408576698