aboutsummaryrefslogtreecommitdiffstats
path: root/src/exception.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2005-12-05 17:35:51 +0000
committerVincent Richard <[email protected]>2005-12-05 17:35:51 +0000
commit2cb8fef483849ad7b2906e110cfc6516ea43bb9e (patch)
tree33ee45c5a3e65560b3be7815575ec9ccb45cb28e /src/exception.cpp
parentFixed a bug in argument vector. (diff)
downloadvmime-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.cpp6
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);