@@ -1363,7 +1363,6 @@ static int _transformation_converter(PyObject* object, void* pointer)
1363
1363
(PyArray_NDIM (facecolors_arr)==1 && PyArray_DIM (facecolors_arr, 0 )!=0 ) ||
1364
1364
(PyArray_NDIM (facecolors_arr)==2 && PyArray_DIM (facecolors_arr, 1 )!=4 ))
1365
1365
{
1366
- Py_XDECREF (facecolors_arr);
1367
1366
PyErr_SetString (PyExc_ValueError, " Facecolors must by a Nx4 numpy array or empty" );
1368
1367
ok = 0 ;
1369
1368
goto exit ;
@@ -1377,7 +1376,6 @@ static int _transformation_converter(PyObject* object, void* pointer)
1377
1376
(PyArray_NDIM (edgecolors_arr)==1 && PyArray_DIM (edgecolors_arr, 0 )!=0 ) ||
1378
1377
(PyArray_NDIM (edgecolors_arr)==2 && PyArray_DIM (edgecolors_arr, 1 )!=4 ))
1379
1378
{
1380
- Py_XDECREF (edgecolors_arr);
1381
1379
PyErr_SetString (PyExc_ValueError, " Edgecolors must by a Nx4 numpy array or empty" );
1382
1380
ok = 0 ;
1383
1381
goto exit ;
@@ -1798,7 +1796,6 @@ static int _transformation_converter(PyObject* object, void* pointer)
1798
1796
if (!coordinates_arr ||
1799
1797
PyArray_NDIM (coordinates_arr) != 3 || PyArray_DIM (coordinates_arr, 2 ) != 2 )
1800
1798
{
1801
- Py_XDECREF (coordinates_arr);
1802
1799
PyErr_SetString (PyExc_ValueError, " Invalid coordinates array" );
1803
1800
ok = 0 ;
1804
1801
goto exit ;
@@ -1844,7 +1841,6 @@ static int _transformation_converter(PyObject* object, void* pointer)
1844
1841
(PyArray_NDIM (facecolors_arr)==1 && PyArray_DIM (facecolors_arr, 0 )!=0 ) ||
1845
1842
(PyArray_NDIM (facecolors_arr)==2 && PyArray_DIM (facecolors_arr, 1 )!=4 ))
1846
1843
{
1847
- Py_XDECREF (facecolors_arr);
1848
1844
PyErr_SetString (PyExc_ValueError, " facecolors must by a Nx4 numpy array or empty" );
1849
1845
ok = 0 ;
1850
1846
goto exit ;
@@ -1857,7 +1853,6 @@ static int _transformation_converter(PyObject* object, void* pointer)
1857
1853
(PyArray_NDIM (edgecolors_arr)==1 && PyArray_DIM (edgecolors_arr, 0 )!=0 ) ||
1858
1854
(PyArray_NDIM (edgecolors_arr)==2 && PyArray_DIM (edgecolors_arr, 1 )!=4 ))
1859
1855
{
1860
- Py_XDECREF (edgecolors_arr);
1861
1856
PyErr_SetString (PyExc_ValueError, " edgecolors must by a Nx4 numpy array or empty" );
1862
1857
ok = 0 ;
1863
1858
goto exit ;
0 commit comments