Cleanup: Do not check pointers before deleting them.
[pdfium.git] / core / src / fxge / apple / fx_quartz_device.cpp
index 8f0f4db..d1e4f54 100644 (file)
@@ -1082,7 +1082,7 @@ CFX_QuartzDevice::~CFX_QuartzDevice()
     if (m_pContext) {
         CGContextRelease(m_pContext);
     }
-    if (GetBitmap() && m_bOwnedBitmap) {
+    if (m_bOwnedBitmap) {
         delete GetBitmap();
     }
 }