forked from boostorg/smart_ptr
Copy rebind allocator before impl destruct
This commit is contained in:
@ -748,8 +748,8 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void destroy() {
|
void destroy() {
|
||||||
this->~type();
|
|
||||||
deallocator allocator(allocator_);
|
deallocator allocator(allocator_);
|
||||||
|
this->~type();
|
||||||
allocator.deallocate(this, 1);
|
allocator.deallocate(this, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -789,8 +789,8 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void destroy() {
|
void destroy() {
|
||||||
this->~type();
|
|
||||||
deallocator allocator(deleter_.allocator());
|
deallocator allocator(deleter_.allocator());
|
||||||
|
this->~type();
|
||||||
allocator.deallocate(this, 1);
|
allocator.deallocate(this, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -835,8 +835,8 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void destroy() {
|
void destroy() {
|
||||||
this->~type();
|
|
||||||
deallocator allocator(allocator_, deleter_.size());
|
deallocator allocator(allocator_, deleter_.size());
|
||||||
|
this->~type();
|
||||||
allocator.deallocate(this, 1);
|
allocator.deallocate(this, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -880,8 +880,8 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void destroy() {
|
void destroy() {
|
||||||
this->~type();
|
|
||||||
deallocator allocator(deleter_.allocator(), deleter_.size());
|
deallocator allocator(deleter_.allocator(), deleter_.size());
|
||||||
|
this->~type();
|
||||||
allocator.deallocate(this, 1);
|
allocator.deallocate(this, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user