mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-09 00:08:52 -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)
|
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user