use release policy to deallocate ptr when RC construction failed

This commit is contained in:
Kontinuation
2014-05-20 07:44:55 +08:00
parent 501aa9de1f
commit 0a46d7c7ac

View File

@@ -127,7 +127,7 @@ public:
}
catch (...)
{
delete ptr;
RP::release(ptr);
}
template <class Other, class OtherRP>