diff --git a/molecule/src/molecule_cml_saver.cpp b/molecule/src/molecule_cml_saver.cpp index e7b33194ac..eb64d4f152 100644 --- a/molecule/src/molecule_cml_saver.cpp +++ b/molecule/src/molecule_cml_saver.cpp @@ -26,14 +26,14 @@ IMPL_ERROR(MoleculeCmlSaver, "molecule CML saver"); MoleculeCmlSaver::MoleculeCmlSaver (Output &output) : _output(output) { skip_cml_tag = false; - _doc = new TiXmlDocument(); - _root = 0; } void MoleculeCmlSaver::saveMolecule (Molecule &mol) { LocaleGuard locale_guard; int i; + _doc = new TiXmlDocument(); + _root = 0; _mol = &mol;