mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
SIP: fix typemap for QVector<Type*> that was wrongly dropping a Python reference (refs #19885)
This commit is contained in:
parent
35c954eb98
commit
9e9ddb587e
@ -1457,15 +1457,10 @@ template <TYPE>
|
||||
|
||||
if (tobj == NULL || PyList_SetItem(l, i, tobj) < 0)
|
||||
{
|
||||
Py_DECREF(tobj);
|
||||
Py_DECREF(l);
|
||||
|
||||
if (!tobj)
|
||||
delete t;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Py_DECREF(tobj);
|
||||
}
|
||||
|
||||
return l;
|
||||
|
Loading…
x
Reference in New Issue
Block a user