mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-16 18:56:52 +02:00
use release policy to deallocate ptr when RC construction failed
This commit is contained in:
@@ -127,7 +127,7 @@ public:
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
delete ptr;
|
||||
RP::release(ptr);
|
||||
}
|
||||
|
||||
template <class Other, class OtherRP>
|
||||
|
Reference in New Issue
Block a user