summaryrefslogtreecommitdiff
path: root/trace_model.cpp
diff options
context:
space:
mode:
authorJosé Fonseca <jose.r.fonseca@gmail.com>2011-09-11 23:42:16 +0100
committerJosé Fonseca <jose.r.fonseca@gmail.com>2011-09-11 23:42:16 +0100
commite3f816248a479b0f2460b7d147774383610de936 (patch)
tree44b6773d5142864be787dbf70d06eae4a0bd1840 /trace_model.cpp
parente2d65227b859e5b096b0f3ccd7e690a662740da6 (diff)
Plug Trace::String::value leak.
Diffstat (limited to 'trace_model.cpp')
-rw-r--r--trace_model.cpp5
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;