]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/mac/_gdi_wrap.cpp
fixing CW 8 builds for all targets
[wxWidgets.git] / wxPython / src / mac / _gdi_wrap.cpp
index 04a73f8729f1d81fb6debf74de59e4ae0580b0ec..7456895c53c8d2d585252f519a5efdb042625296 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;
       }
     }