]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/contrib/animate/mac/animate_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / contrib / animate / mac / animate_wrap.cpp
index 9c9a008dd4ad340518d68322d6acd90186e93120..62c8e3acd9a3d6b27a9096b0a3c240490ff89c3c 100644 (file)
@@ -1037,7 +1037,8 @@ SWIG_Python_TypeError(const char *type, PyObject *obj)
          PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
                       type, otype);
        }
-       Py_DECREF(str);
+       if (str)
+          Py_DECREF(str);
        return;
       }
     }