Commit 1446986d authored by David GEISSBUHLER's avatar David GEISSBUHLER

memory leak fixed

parent 91ded965
Pipeline #12121 passed with stages
in 10 minutes 15 seconds
......@@ -61,6 +61,8 @@ static PyObject* PyRemoveHighlights(PyObject*, PyObject* args, PyObject* kwargs)
&epsilon, &skip_diffuse, &check_nan_inf))
return 0;
auto array_ = make_safe(array);
// check that the array has the expected properties
if (array->type_num != NPY_FLOAT32|| array->ndim != 3){
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment