Fixed leak when adding duplicate keys (and actually changed the behavior - now we take the first instance, not the last)

This commit is contained in:
jbeder
2009-12-02 01:01:45 +00:00
parent 8f0f0d62a7
commit f4b81e7349
2 changed files with 17 additions and 10 deletions

View File

@@ -43,6 +43,8 @@ namespace YAML
void ParseFlow(Scanner *pScanner, ParserState& state);
void ParseCompact(Scanner *pScanner, ParserState& state);
void ParseCompactWithNoKey(Scanner *pScanner, ParserState& state);
void AddEntry(std::auto_ptr<Node> pKey, std::auto_ptr<Node> pValue);
private:
node_map m_data;