Skip to content

Commit 2884870

Browse files
authored
Merge pull request MPI-IS#5 from k-chaney/master
This is merged into a feature branch as a bit of cleaning still needs to be done before closing this task.
2 parents 208e578 + 96df603 commit 2884870

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mesh/src/py_visibility.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,7 @@ visibility_compute(PyObject *self, PyObject *args, PyObject *keywds)
199199
pSensors, min_dist, visibility, normal_dot_cam);
200200

201201
if(py_tree == NULL){
202-
PyObject* py_bin_visibility = PyCapsule_New((void*)search, NULL, visibility_destructor);
203-
PyObject* py_normal_dot_cam = PyCapsule_New((void*)search, NULL, visibility_destructor);
202+
delete search;
204203
}
205204

206205
return Py_BuildValue("NN",py_bin_visibility, py_normal_dot_cam);

0 commit comments

Comments
 (0)