Fixing silly oversight (discovered while creating PR #3041).

This commit is contained in:
Ralf W. Grosse-Kunstleve 2021-06-16 17:20:42 -07:00 committed by Ralf W. Grosse-Kunstleve
parent cd5fbc56db
commit 4ab4f36a92

View File

@ -288,7 +288,6 @@ struct smart_holder {
if (hld.vptr_is_using_builtin_delete) { if (hld.vptr_is_using_builtin_delete) {
hld.vptr.reset(unq_ptr.get(), make_guarded_builtin_delete<T>(true)); hld.vptr.reset(unq_ptr.get(), make_guarded_builtin_delete<T>(true));
} else { } else {
make_guarded_custom_deleter<T, D>(false);
hld.vptr.reset(unq_ptr.get(), make_guarded_custom_deleter<T, D>(true)); hld.vptr.reset(unq_ptr.get(), make_guarded_custom_deleter<T, D>(true));
} }
unq_ptr.release(); unq_ptr.release();