]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/gtk/_core_wrap.cpp
fixing CW 8 builds for all targets
[wxWidgets.git] / wxPython / src / gtk / _core_wrap.cpp
index bc374b41f37372134c3bc02afd097ab253ee89b4..88cb06f6931a6621149f0eea21857542b69607ef 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;
       }
     }