diff --git a/src/cpp/flann/util/any.h b/src/cpp/flann/util/any.h index 8014f6a4..d9d23a83 100644 --- a/src/cpp/flann/util/any.h +++ b/src/cpp/flann/util/any.h @@ -78,7 +78,11 @@ struct big_any_policy : typed_base_any_policy { virtual void static_delete(void** x) { - if (* x) delete (* reinterpret_cast(x)); *x = NULL; + if (* x) + { + delete (* reinterpret_cast(x)); + *x = NULL; + } } virtual void copy_from_value(void const* src, void** dest) {