diff --git a/SAX/wrappers/saxxerces.h b/SAX/wrappers/saxxerces.h index e19482dc..3ef7edb5 100644 --- a/SAX/wrappers/saxxerces.h +++ b/SAX/wrappers/saxxerces.h @@ -269,7 +269,7 @@ class xerces_wrapper : public SAX::basic_ProgressiveParser { if(str) { - xerces_string_janitor cstr = XERCES_CPP_NAMESPACE::XMLString::transcode(str); + xerces_string_janitor cstr(XERCES_CPP_NAMESPACE::XMLString::transcode(str)); return base::makeStringT(cstr.get()); } return base::makeStringT("");