diff --git a/src/math_eigen_impl.h b/src/math_eigen_impl.h index daef0e7052..80502b1701 100644 --- a/src/math_eigen_impl.h +++ b/src/math_eigen_impl.h @@ -850,6 +850,7 @@ Dealloc() { //assert(! is_preallocated); Dealloc2D(&M); delete[] max_idx_row; + max_idx_row = nullptr; Init(); }