]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/contrib/animate/msw/animate_wrap.cpp
No longer building the C++ version of the OGL lib
[wxWidgets.git] / wxPython / contrib / animate / msw / animate_wrap.cpp
index ae429bbf4a8bc9c6947ffb710db3cdd42ed0f1aa..eb706b719ba0d063b1a2c33bfd1c73c13b4e8ecc 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;
       }
     }