summaryrefslogtreecommitdiff
path: root/trace_parser.hpp
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2011-02-09 15:15:08 +0000
committerJosé Fonseca <jfonseca@vmware.com>2011-02-09 15:15:08 +0000
commitae9668b104e59ce074bc146dd70da93d0b3da3f9 (patch)
tree5188e94cf37203a078f333a420db3d2f37d68072 /trace_parser.hpp
parent5e68716325a3a789ae79c610cec183683a0be55d (diff)
Don't leak all over the place.
Diffstat (limited to 'trace_parser.hpp')
-rw-r--r--trace_parser.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/trace_parser.hpp b/trace_parser.hpp
index b401741..538ff6c 100644
--- a/trace_parser.hpp
+++ b/trace_parser.hpp
@@ -60,7 +60,7 @@ protected:
typedef std::vector<Struct::Signature *> StructMap;
StructMap structs;
- typedef std::vector<Enum *> EnumMap;
+ typedef std::vector<Enum::Signature *> EnumMap;
EnumMap enums;
typedef std::vector<Bitmask::Signature *> BitmaskMap;
@@ -275,15 +275,15 @@ public:
Value *parse_enum() {
size_t id = read_uint();
- Enum *sig = lookup(enums, id);
+ Enum::Signature *sig = lookup(enums, id);
if (!sig) {
std::string name = read_string();
Value *value = parse_value();
- sig = new Enum(name, value);
+ sig = new Enum::Signature(name, value);
enums[id] = sig;
}
assert(sig);
- return sig;
+ return new Enum(sig);
}
Value *parse_bitmask() {