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