Index: core/src/fxge/agg/src/fx_agg_driver.cpp |
diff --git a/core/src/fxge/agg/src/fx_agg_driver.cpp b/core/src/fxge/agg/src/fx_agg_driver.cpp |
index cb01893d5ba18ab608b3ec623ee608873bce3e71..045d58692449f1510b7ef2ebdafa7d1771101ca6 100644 |
--- a/core/src/fxge/agg/src/fx_agg_driver.cpp |
+++ b/core/src/fxge/agg/src/fx_agg_driver.cpp |
@@ -207,9 +207,7 @@ CFX_AggDeviceDriver::~CFX_AggDeviceDriver() |
{ |
delete m_pClipRgn; |
for (int i = 0; i < m_StateStack.GetSize(); i ++) |
- if (m_StateStack[i]) { |
- delete (CFX_ClipRgn*)m_StateStack[i]; |
- } |
+ delete (CFX_ClipRgn*)m_StateStack[i]; |
DestroyPlatform(); |
} |
#if _FXM_PLATFORM_ != _FXM_PLATFORM_APPLE_ |