Commit f1a56fe1 authored by David GEISSBUHLER's avatar David GEISSBUHLER

Merge branch 'mem_fix' into 'master'

Memory leak fixed See merge request !10
parents 91ded965 1446986d
Pipeline #12130 passed with stages
in 12 minutes 43 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){
PyErr_Format(PyExc_TypeError,
......
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