]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/contrib/gizmos/gtk/gizmos_wrap.cpp
committed aupdated patch that adds support for
[wxWidgets.git] / wxPython / contrib / gizmos / gtk / gizmos_wrap.cpp
index a1be92de781ec9a48144b3cd78d18c2b9873ea18..479d99f76438d762114fdb13fd3fcdb84834a7cc 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;
       }
     }