mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-17 16:51:33 -04:00
Cleanup
This commit is contained in:
parent
69627d00a4
commit
59482b3466
@ -187,11 +187,11 @@ public:
|
||||
}
|
||||
|
||||
void reset(pointer_type p){
|
||||
if(get() != pointer_type()){
|
||||
get_deleter()(get());
|
||||
}
|
||||
|
||||
auto tmp = get();
|
||||
std::get<0>(_data) = p;
|
||||
if(tmp){
|
||||
get_deleter()(tmp);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user