Chromium Code Reviews| Index: core/src/fxcrt/fx_xml_parser.cpp |
| diff --git a/core/src/fxcrt/fx_xml_parser.cpp b/core/src/fxcrt/fx_xml_parser.cpp |
| index c3d4b9c506e1f04edc590f345902753fe43602e7..b7e58a04e1b21e06c53c862a9651a9a51803a6c4 100644 |
| --- a/core/src/fxcrt/fx_xml_parser.cpp |
| +++ b/core/src/fxcrt/fx_xml_parser.cpp |
| @@ -8,7 +8,7 @@ |
| #include "xml_int.h" |
| CXML_Parser::~CXML_Parser() |
| { |
| - if (m_bOwnedStream) { |
| + if (m_bOwnedStream && m_pDataAcc) { |
| m_pDataAcc->Release(); |
| } |
| } |