@@ -1363,7 +1363,6 @@ static int _transformation_converter(PyObject* object, void* pointer)
13631363 (PyArray_NDIM (facecolors_arr)==1 && PyArray_DIM (facecolors_arr, 0 )!=0 ) ||
13641364 (PyArray_NDIM (facecolors_arr)==2 && PyArray_DIM (facecolors_arr, 1 )!=4 ))
13651365 {
1366- Py_XDECREF (facecolors_arr);
13671366 PyErr_SetString (PyExc_ValueError, " Facecolors must by a Nx4 numpy array or empty" );
13681367 ok = 0 ;
13691368 goto exit;
@@ -1377,7 +1376,6 @@ static int _transformation_converter(PyObject* object, void* pointer)
13771376 (PyArray_NDIM (edgecolors_arr)==1 && PyArray_DIM (edgecolors_arr, 0 )!=0 ) ||
13781377 (PyArray_NDIM (edgecolors_arr)==2 && PyArray_DIM (edgecolors_arr, 1 )!=4 ))
13791378 {
1380- Py_XDECREF (edgecolors_arr);
13811379 PyErr_SetString (PyExc_ValueError, " Edgecolors must by a Nx4 numpy array or empty" );
13821380 ok = 0 ;
13831381 goto exit;
@@ -1798,7 +1796,6 @@ static int _transformation_converter(PyObject* object, void* pointer)
17981796 if (!coordinates_arr ||
17991797 PyArray_NDIM (coordinates_arr) != 3 || PyArray_DIM (coordinates_arr, 2 ) != 2 )
18001798 {
1801- Py_XDECREF (coordinates_arr);
18021799 PyErr_SetString (PyExc_ValueError, " Invalid coordinates array" );
18031800 ok = 0 ;
18041801 goto exit;
@@ -1844,7 +1841,6 @@ static int _transformation_converter(PyObject* object, void* pointer)
18441841 (PyArray_NDIM (facecolors_arr)==1 && PyArray_DIM (facecolors_arr, 0 )!=0 ) ||
18451842 (PyArray_NDIM (facecolors_arr)==2 && PyArray_DIM (facecolors_arr, 1 )!=4 ))
18461843 {
1847- Py_XDECREF (facecolors_arr);
18481844 PyErr_SetString (PyExc_ValueError, " facecolors must by a Nx4 numpy array or empty" );
18491845 ok = 0 ;
18501846 goto exit;
@@ -1857,7 +1853,6 @@ static int _transformation_converter(PyObject* object, void* pointer)
18571853 (PyArray_NDIM (edgecolors_arr)==1 && PyArray_DIM (edgecolors_arr, 0 )!=0 ) ||
18581854 (PyArray_NDIM (edgecolors_arr)==2 && PyArray_DIM (edgecolors_arr, 1 )!=4 ))
18591855 {
1860- Py_XDECREF (edgecolors_arr);
18611856 PyErr_SetString (PyExc_ValueError, " edgecolors must by a Nx4 numpy array or empty" );
18621857 ok = 0 ;
18631858 goto exit;
0 commit comments