fix leak in inplace task destructor

master
Francisco Paisana 5 years ago committed by Francisco Paisana
parent 1061f2144b
commit 8d1beb42bd

@ -74,7 +74,7 @@ struct oper_table_t {
*static_cast<Func**>(dest) = *static_cast<Func**>(src);
*static_cast<Func**>(src) = nullptr;
},
[](void* src) -> void { (*static_cast<Func**>(src))->~Func(); }};
[](void* src) -> void { delete (*static_cast<Func**>(src)); }};
return &t;
}

Loading…
Cancel
Save