Chromium Code Reviews| Index: xfa/fxgraphics/cagg_graphics.cpp |
| diff --git a/xfa/fxgraphics/cagg_graphics.cpp b/xfa/fxgraphics/cagg_graphics.cpp |
| index 4c9e41fea3c6c7eec3eb66b5d4119f3eb9a6c0df..a4211810c40371edf0ce6079426e21f75944b9de 100644 |
| --- a/xfa/fxgraphics/cagg_graphics.cpp |
| +++ b/xfa/fxgraphics/cagg_graphics.cpp |
| @@ -26,7 +26,5 @@ FX_ERR CAGG_Graphics::Create(CFX_Graphics* owner, |
| } |
| CAGG_Graphics::~CAGG_Graphics() { |
| - if (m_owner->m_renderDevice) |
| - delete (CFX_FxgeDevice*)m_owner->m_renderDevice; |
| - m_owner = nullptr; |
| + delete m_owner->m_renderDevice; |
|
Tom Sepez
2016/04/28 21:47:22
virtual dtor?
Lei Zhang
2016/04/28 22:31:10
Yes.
|
| } |