X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5a446332930f51af5c85fb9b73e26f87fc65cd2c..d0ee33f5c6908b4ac5e1364381f0ef00942e3936:/wxPython/src/msw/grid_wrap.cpp?ds=sidebyside diff --git a/wxPython/src/msw/grid_wrap.cpp b/wxPython/src/msw/grid_wrap.cpp index 8e51aeb8c1..6b42142103 100644 --- a/wxPython/src/msw/grid_wrap.cpp +++ b/wxPython/src/msw/grid_wrap.cpp @@ -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; } } @@ -10493,15 +10494,11 @@ static PyObject *_wrap_Grid_GetTextBoxSize(PyObject *, PyObject *args, PyObject int i, len=PySequence_Length(obj2); for (i=0; iAdd(Py2wxString(str)); + arg3->Add(*s); + delete s; Py_DECREF(item); - Py_DECREF(str); } } {