diff --git a/lib/include/srslte/common/inplace_task.h b/lib/include/srslte/common/inplace_task.h index 805269609..f0d0ec215 100644 --- a/lib/include/srslte/common/inplace_task.h +++ b/lib/include/srslte/common/inplace_task.h @@ -74,7 +74,7 @@ struct oper_table_t { *static_cast(dest) = *static_cast(src); *static_cast(src) = nullptr; }, - [](void* src) -> void { (*static_cast(src))->~Func(); }}; + [](void* src) -> void { delete (*static_cast(src)); }}; return &t; }