From ba02f0a45036a1f9c64cd56533990d3284bcc4cf Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 10 Aug 2008 01:41:59 -0400 Subject: Fixed a memory leak that would show up if --verify --verbose was running and an error or exception occurred. --- src/flags.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/flags.h') 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); } -- cgit v1.2.3