diff --git a/applications/plugins/SofaPython/ctypes.cpp b/applications/plugins/SofaPython/ctypes.cpp index a125f3b3232..31092e3be94 100644 --- a/applications/plugins/SofaPython/ctypes.cpp +++ b/applications/plugins/SofaPython/ctypes.cpp @@ -106,6 +106,7 @@ static void eigen_from_scipy_impl(eigen_csr_matrix* lvalue, eigen_csr_matrix matrix; char bytes[0]; // ye olde c trick ahoy storage_type() { } + ~storage_type() { } } storage; const eigen_csr_matrix* alias = new (storage.bytes) eigen_csr_matrix(rvalue);