diff options
author | Vincent Richard <[email protected]> | 2005-12-05 17:35:51 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2005-12-05 17:35:51 +0000 |
commit | 2cb8fef483849ad7b2906e110cfc6516ea43bb9e (patch) | |
tree | 33ee45c5a3e65560b3be7815575ec9ccb45cb28e /src/exception.cpp | |
parent | Fixed a bug in argument vector. (diff) | |
download | vmime-2cb8fef483849ad7b2906e110cfc6516ea43bb9e.tar.gz vmime-2cb8fef483849ad7b2906e110cfc6516ea43bb9e.zip |
Fixed segfault in destructor when chaining 3 exceptions or more.
Diffstat (limited to 'src/exception.cpp')
-rw-r--r-- | src/exception.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/exception.cpp b/src/exception.cpp index 9cfd2201..b01fa033 100644 --- a/src/exception.cpp +++ b/src/exception.cpp @@ -46,6 +46,12 @@ exception::exception(const string& what, const exception& other) } +exception::exception(const exception& e) + : std::exception(), m_what(e.what()), m_other(e.m_other == NULL ? NULL : e.m_other->clone()) +{ +} + + exception::~exception() throw() { delete (m_other); |