Skip to content
Snippets Groups Projects
Commit f1a56fe1 authored by David GEISSBUHLER's avatar David GEISSBUHLER
Browse files

Merge branch 'mem_fix' into 'master'

Memory leak fixed

See merge request !10
parents 91ded965 1446986d
No related branches found
No related tags found
1 merge request!10Memory leak fixed
Pipeline #
...@@ -61,6 +61,8 @@ static PyObject* PyRemoveHighlights(PyObject*, PyObject* args, PyObject* kwargs) ...@@ -61,6 +61,8 @@ static PyObject* PyRemoveHighlights(PyObject*, PyObject* args, PyObject* kwargs)
&epsilon, &skip_diffuse, &check_nan_inf)) &epsilon, &skip_diffuse, &check_nan_inf))
return 0; return 0;
auto array_ = make_safe(array);
// check that the array has the expected properties // check that the array has the expected properties
if (array->type_num != NPY_FLOAT32|| array->ndim != 3){ if (array->type_num != NPY_FLOAT32|| array->ndim != 3){
PyErr_Format(PyExc_TypeError, PyErr_Format(PyExc_TypeError,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment