diff options
author | José Fonseca <jose.r.fonseca@gmail.com> | 2011-09-11 23:42:16 +0100 |
---|---|---|
committer | José Fonseca <jose.r.fonseca@gmail.com> | 2011-09-11 23:42:16 +0100 |
commit | e3f816248a479b0f2460b7d147774383610de936 (patch) | |
tree | 44b6773d5142864be787dbf70d06eae4a0bd1840 /trace_model.cpp | |
parent | e2d65227b859e5b096b0f3ccd7e690a662740da6 (diff) |
Plug Trace::String::value leak.
Diffstat (limited to 'trace_model.cpp')
-rw-r--r-- | trace_model.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/trace_model.cpp b/trace_model.cpp index 25dc4bb..306b9e7 100644 --- a/trace_model.cpp +++ b/trace_model.cpp @@ -42,6 +42,11 @@ Call::~Call() { } +String::~String() { + delete [] value; +} + + Struct::~Struct() { for (std::vector<Value *>::iterator it = members.begin(); it != members.end(); ++it) { delete *it; |