Index: fpdfsdk/src/fpdfview.cpp |
diff --git a/fpdfsdk/src/fpdfview.cpp b/fpdfsdk/src/fpdfview.cpp |
index 54731193dda2f5b314d1007c9304e4b4fdcf0987..9db0554ab337529ce7e8078372a7cb31e84bf9ef 100644 |
--- a/fpdfsdk/src/fpdfview.cpp |
+++ b/fpdfsdk/src/fpdfview.cpp |
@@ -481,14 +481,12 @@ DLLEXPORT void STDCALL FPDF_RenderPage(HDC dc, FPDF_PAGE page, int start_x, int |
#endif |
#endif |
- if (bBackgroundAlphaNeeded) |
- { |
- if (pBitmap) |
- delete pBitmap; |
- pBitmap = NULL; |
- } |
- delete pContext; |
- pPage->RemovePrivateData((void*)1); |
+ if (bBackgroundAlphaNeeded) { |
+ delete pBitmap; |
+ pBitmap = NULL; |
+ } |
+ delete pContext; |
+ pPage->RemovePrivateData((void*)1); |
} |
#endif |
@@ -662,8 +660,7 @@ DLLEXPORT int STDCALL FPDFBitmap_GetStride(FPDF_BITMAP bitmap) |
DLLEXPORT void STDCALL FPDFBitmap_Destroy(FPDF_BITMAP bitmap) |
{ |
- if (bitmap == NULL) return; |
- delete (CFX_DIBitmap*)bitmap; |
+ delete (CFX_DIBitmap*)bitmap; |
} |
void FPDF_RenderPage_Retail(CRenderContext* pContext, FPDF_PAGE page, int start_x, int start_y, int size_x, int size_y, |