mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-17 19:25:53 +02:00
#538 prevent destructors from throwing exceptions
This commit is contained in:
@@ -143,7 +143,14 @@ public:
|
||||
|
||||
~SharedPtr()
|
||||
{
|
||||
release();
|
||||
try
|
||||
{
|
||||
release();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
poco_unexpected();
|
||||
}
|
||||
}
|
||||
|
||||
SharedPtr& assign(C* ptr)
|
||||
|
Reference in New Issue
Block a user