]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/gtk/_windows_wrap.cpp
fix for w/o expat
[wxWidgets.git] / wxPython / src / gtk / _windows_wrap.cpp
index 584cccd317d33eb02b800d2cda7d80743aee5c96..8b75d855dcbeea9d88b0923d5611a6fac61b3111 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;
       }
     }