projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Compilation fix. I didn't add a #error since I figured this sample will be
[wxWidgets.git]
/
wxPython
/
src
/
mac
/
grid_wrap.cpp
diff --git
a/wxPython/src/mac/grid_wrap.cpp
b/wxPython/src/mac/grid_wrap.cpp
index e38ab821c29e5490ab4a0f13d0652a460fad0355..febd80dfc007a25bbc1b436d1b57289c6d631333 100644
(file)
--- a/
wxPython/src/mac/grid_wrap.cpp
+++ b/
wxPython/src/mac/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;
}
}