mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-11 16:13:53 +00:00
Fixing silly oversight (discovered while creating PR #3041).
This commit is contained in:
parent
cd5fbc56db
commit
4ab4f36a92
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user