]> git.sesse.net Git - xml-template/blobdiff - c++0x/xml-template.h
Fix a typo causing references to freed memory.
[xml-template] / c++0x / xml-template.h
index afd688a6a6dc0e76c8f9fda48a553db4fa3b4191..eb132110e8f80604caea2ee12723bce71be26b08 100644 (file)
@@ -38,7 +38,7 @@ class Substitute : public Directive {
        virtual void process(xmlNode *node, bool clean);
 
  private:
-       const std::unordered_map<std::string, Directive*> &substitution_map;
+       const std::unordered_map<std::string, Directive*> substitution_map;
 };
 
 void process_file(const std::string &input_filename,