diff --git a/PyCore/Embed/PyObjectPtr.cpp b/PyCore/Embed/PyObjectPtr.cpp index 93e9530bd2bcb98af1225b7635f66f4230c044ee..6c0cfb60716e0fdd54acdef35259d428b545a5f0 100644 --- a/PyCore/Embed/PyObjectPtr.cpp +++ b/PyCore/Embed/PyObjectPtr.cpp @@ -28,10 +28,8 @@ PyObjectPtr::~PyObjectPtr() } PyObjectPtr::PyObjectPtr(PyObjectPtr&& other) - : PyObjectPtr(other.get()) + : PyObjectPtr(other.release()) { - // reset the moved object - other.reset(); } PyObject* PyObjectPtr::get()