Commit 509d6235 authored by visionworkz's avatar visionworkz Committed by Davis E. King

Fixed refcount issue in Python dlib.jitter_image and dlib.get_face_chips (#1246)

* Fixed reference count issue

* Fixed refcount issue in Python dlib.jitter_image and dlib.get_face_chips
parent 24ac9bc4
......@@ -47,6 +47,7 @@ py::list get_jitter_images(py::object img, size_t num_jitters = 1, bool disturb_
py::handle handle = arr;
// Append image to jittered image list
jitter_list.append(handle);
Py_DECREF(arr);
}
return jitter_list;
......@@ -91,6 +92,7 @@ py::list get_face_chips (
// Append image to chips list
chips_list.append(handle);
Py_DECREF(arr);
}
return chips_list;
}
......
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