SIP: fix typemap for QVector<Type*> that was wrongly dropping a Python reference (refs #19885)

This commit is contained in:
Even Rouault 2018-09-21 15:31:28 +02:00
parent 35c954eb98
commit 9e9ddb587e
No known key found for this signature in database
GPG Key ID: 33EBBFC47B3DD87D

View File

@ -1457,15 +1457,10 @@ template <TYPE>
if (tobj == NULL || PyList_SetItem(l, i, tobj) < 0) if (tobj == NULL || PyList_SetItem(l, i, tobj) < 0)
{ {
Py_DECREF(tobj);
Py_DECREF(l); Py_DECREF(l);
if (!tobj)
delete t;
return NULL; return NULL;
} }
Py_DECREF(tobj);
} }
return l; return l;