mirror of
https://github.com/boostorg/python.git
synced 2026-01-22 05:22:45 +00:00
Reference-counting bug fix, thanks to Mark Evans <mark.evans@clarisay.com>
[SVN r8088]
This commit is contained in:
@@ -16,7 +16,7 @@ namespace py {
|
||||
template <class T>
|
||||
T object_from_python(PyObject* p, Type<T>)
|
||||
{
|
||||
Ptr x(p);
|
||||
Ptr x(p, Ptr::new_ref);
|
||||
if (!T::accepts(x))
|
||||
{
|
||||
PyErr_SetString(PyExc_TypeError, p->ob_type->tp_name);
|
||||
|
||||
Reference in New Issue
Block a user