summaryrefslogtreecommitdiff
path: root/src/flags.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-08-10 01:41:59 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-08-10 01:41:59 -0400
commitba02f0a45036a1f9c64cd56533990d3284bcc4cf (patch)
treef261e8d3cadb5d3dccd904b7c8c7fe5e90811aa3 /src/flags.h
parentc9d575abceb672d1c23383d973adee40daeecda8 (diff)
downloadfork-ledger-ba02f0a45036a1f9c64cd56533990d3284bcc4cf.tar.gz
fork-ledger-ba02f0a45036a1f9c64cd56533990d3284bcc4cf.tar.bz2
fork-ledger-ba02f0a45036a1f9c64cd56533990d3284bcc4cf.zip
Fixed a memory leak that would show up if --verify --verbose was running and
an error or exception occurred.
Diffstat (limited to 'src/flags.h')
-rw-r--r--src/flags.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/flags.h b/src/flags.h
index b75fdc21..3e94ab31 100644
--- a/src/flags.h
+++ b/src/flags.h
@@ -45,9 +45,12 @@ public:
supports_flags() : flags_(0) {
TRACE_CTOR(supports_flags, "");
}
- supports_flags(const flags_t& arg) : flags_(arg) {
+ supports_flags(const supports_flags& arg) : flags_(arg.flags_) {
TRACE_CTOR(supports_flags, "copy");
}
+ supports_flags(const flags_t& arg) : flags_(arg) {
+ TRACE_CTOR(supports_flags, "const flags_t&");
+ }
~supports_flags() throw() {
TRACE_DTOR(supports_flags);
}