]> git.sesse.net Git - xml-template/commitdiff
Fix a typo causing references to freed memory.
authorsgunderson@bigfoot.com <>
Wed, 21 Sep 2011 20:56:06 +0000 (22:56 +0200)
committersgunderson@bigfoot.com <>
Wed, 21 Sep 2011 20:56:06 +0000 (22:56 +0200)
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,