]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/gtk/_controls_wrap.cpp
Note XRCed update
[wxWidgets.git] / wxPython / src / gtk / _controls_wrap.cpp
index cb5d955e68ced6b6442a6309c80810fa065d71b8..8f4a84db46192835f3de82f51d56d641a7c21cd8 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;
       }
     }