Skip to content

Commit 9e9ddb5

Browse files
committedSep 21, 2018
SIP: fix typemap for QVector<Type*> that was wrongly dropping a Python reference (refs #19885)
1 parent 35c954e commit 9e9ddb5

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed
 

‎python/core/conversions.sip

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1457,15 +1457,10 @@ template <TYPE>
14571457

14581458
if (tobj == NULL || PyList_SetItem(l, i, tobj) < 0)
14591459
{
1460+
Py_DECREF(tobj);
14601461
Py_DECREF(l);
1461-
1462-
if (!tobj)
1463-
delete t;
1464-
14651462
return NULL;
14661463
}
1467-
1468-
Py_DECREF(tobj);
14691464
}
14701465

14711466
return l;

0 commit comments

Comments
 (0)
Please sign in to comment.